forked from qt-creator/qt-creator
Match the value of the literals.
This commit is contained in:
@@ -57,6 +57,9 @@ bool ASTMatcher::matchToken(unsigned tokenIndex, unsigned patternTokenIndex) con
|
||||
else if (token.is(T_IDENTIFIER)) {
|
||||
if (! token.identifier->isEqualTo(otherToken.identifier))
|
||||
return false;
|
||||
} else if (token.isLiteral()) {
|
||||
if (! token.literal->isEqualTo(otherToken.literal))
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user