enums: Fix false negatives caused by new enum handling

This commit is contained in:
Robert Reif 2016-04-22 20:26:58 +02:00 committed by Daniel Marjamäki
parent 7ff90e7fae
commit ee2be81fae
1 changed files with 1 additions and 1 deletions

View File

@ -1375,7 +1375,7 @@ bool SymbolDatabase::isFunction(const Token *tok, const Scope* outerScope, const
}
// skip over modifiers and other stuff
while (Token::Match(tok1, "const|static|extern|template|virtual|struct|class"))
while (Token::Match(tok1, "const|static|extern|template|virtual|struct|class|enum"))
tok1 = tok1->previous();
// should be at a sequence point if this is a function