Skip to content

Commit e20aaac

Browse files
Update tokenize.cpp
1 parent c70ec62 commit e20aaac

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

lib/tokenize.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1023,7 +1023,6 @@ bool Tokenizer::isFunctionPointer(const Token* tok) {
10231023
return Token::Match(tok, "%name% ) (");
10241024
}
10251025

1026-
10271026
void Tokenizer::simplifyTypedef()
10281027
{
10291028
// Simplify global typedefs that are not redefined with the fast 1-pass simplification.
@@ -1400,7 +1399,7 @@ void Tokenizer::simplifyTypedefCpp()
14001399
}
14011400

14021401
// function pointer
1403-
if (isFunctionPointer(tokOffset2)) {
1402+
if (Token::Match(tokOffset2, "* %name% ) (")) {
14041403
// name token wasn't a name, it was part of the type
14051404
typeEnd = typeEnd->next();
14061405
functionPtr = true;

0 commit comments

Comments
 (0)