GP-0_ghizard fix redundancy and test from GP-3649

This commit is contained in:
ghizard 2023-07-21 08:20:31 -04:00
parent 1f6cb534af
commit 9c0f2e61f7
2 changed files with 3 additions and 3 deletions

View File

@ -227,7 +227,7 @@ public abstract class AbstractDemangledFunctionDefinitionDataType extends Demang
StringBuilder typeBuffer = new StringBuilder();
int pointerLevels = getPointerLevels();
if (pointerLevels > 0 || isReference() || isRValueReference()) {
if (pointerLevels > 0 || isReference()) {
addParentName(typeBuffer);

View File

@ -1578,7 +1578,7 @@ public class GnuDemanglerParserTest extends AbstractGenericTest {
assertEquals("Name of type parsed", "function", demangParamDT.getName());
assertEquals("Param Type Name parsed", "boost", demangParamDT.getNamespace().toString());
assertEquals("Param Template parsed", "<void ()>", demangParamDT.getTemplate().toString());
assertTrue("Is referent", demangParamDT.isReference());
assertTrue("Is referent", demangParamDT.isLValueReference());
assertEquals(
"undefined LogLevelMonitor::registerKeysChangedCallback(boost::function<void ()> const &)",
@ -1611,7 +1611,7 @@ public class GnuDemanglerParserTest extends AbstractGenericTest {
assertEquals("Param Type Name parsed", "boost", demangParamDT.getNamespace().toString());
assertEquals("Param Template parsed", "<void (ares_options *,int *)>",
demangParamDT.getTemplate().toString());
assertTrue("Is referent", demangParamDT.isReference());
assertTrue("Is referent", demangParamDT.isLValueReference());
assertTrue("Is Const", demangParamDT.isConst());
assertEquals(