Skip to content

Commit

Permalink
Use Token::simpleMatch instead of Token::Match
Browse files Browse the repository at this point in the history
"--enable=internal" reported:
[lib/tokenize.cpp:3563]: (warning) Found simple pattern inside Token::Match() call: ") ;"
  • Loading branch information
thomasjfox committed Nov 24, 2011
1 parent 0722da0 commit 5025d10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/tokenize.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3560,7 +3560,7 @@ void Tokenizer::setVarId()
tok2 = tok2->next();
}

if (executableScope && Token::Match(tok2, ") ;"))
if (executableScope && Token::simpleMatch(tok2, ") ;"))
continue;

if (Token::Match(tok2 ? tok2->tokAt(-2) : 0, "class|struct %type% ;"))
Expand Down

0 comments on commit 5025d10

Please sign in to comment.