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:
parent
2fa35a6f8d
commit
5c8b05ce94
|
@ -942,7 +942,7 @@ bool SymbolDatabase::isFunction(const Token *tok, const Scope* outerScope, const
|
||||||
}
|
}
|
||||||
|
|
||||||
// template constructor?
|
// 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(), ") const| ;|{|=") ||
|
||||||
Token::Match(tok->next()->link()->next()->link(), ") : ::| %var% (|::|<|{"))) {
|
Token::Match(tok->next()->link()->next()->link(), ") : ::| %var% (|::|<|{"))) {
|
||||||
*funcStart = tok;
|
*funcStart = tok;
|
||||||
|
|
Loading…
Reference in New Issue