Use Token::simpleMatch() for simple pattern

"internal" check reported:
[lib/symboldatabase.cpp:945]: (warning) Found simple pattern inside Token::Match() call: "> ("
This commit is contained in:
Thomas Jarosch 2013-01-15 20:34:11 +01:00
parent 2fa35a6f8d
commit 5c8b05ce94
1 changed files with 1 additions and 1 deletions

View File

@ -942,7 +942,7 @@ bool SymbolDatabase::isFunction(const Token *tok, const Scope* outerScope, const
}
// template constructor?
else if (Token::Match(tok, "%var% <") && Token::Match(tok->next()->link(), "> (") &&
else if (Token::Match(tok, "%var% <") && Token::simpleMatch(tok->next()->link(), "> (") &&
(Token::Match(tok->next()->link()->next()->link(), ") const| ;|{|=") ||
Token::Match(tok->next()->link()->next()->link(), ") : ::| %var% (|::|<|{"))) {
*funcStart = tok;