We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c70ec62 commit e20aaacCopy full SHA for e20aaac
1 file changed
lib/tokenize.cpp
@@ -1023,7 +1023,6 @@ bool Tokenizer::isFunctionPointer(const Token* tok) {
1023
return Token::Match(tok, "%name% ) (");
1024
}
1025
1026
-
1027
void Tokenizer::simplifyTypedef()
1028
{
1029
// Simplify global typedefs that are not redefined with the fast 1-pass simplification.
@@ -1400,7 +1399,7 @@ void Tokenizer::simplifyTypedefCpp()
1400
1399
1401
1402
// function pointer
1403
- if (isFunctionPointer(tokOffset2)) {
+ if (Token::Match(tokOffset2, "* %name% ) (")) {
1404
// name token wasn't a name, it was part of the type
1405
typeEnd = typeEnd->next();
1406
functionPtr = true;
0 commit comments