Refactorization: Improve performance of simplifyTypedef by using Token::simpleMatch by ~15% (forgotten in b8d39a2229
)
This commit is contained in:
parent
f624f6fc25
commit
00662ec484
|
@ -1145,7 +1145,7 @@ void Tokenizer::simplifyTypedef()
|
||||||
}
|
}
|
||||||
|
|
||||||
// check for typedef that can be substituted
|
// check for typedef that can be substituted
|
||||||
else if (Token::Match(tok2, pattern.c_str()) ||
|
else if (Token::simpleMatch(tok2, pattern.c_str()) ||
|
||||||
(inMemberFunc && tok2->str() == typeName->str())) {
|
(inMemberFunc && tok2->str() == typeName->str())) {
|
||||||
|
|
||||||
// member function class variables don't need qualification
|
// member function class variables don't need qualification
|
||||||
|
|
Loading…
Reference in New Issue