Symboldatabase: function return token (#6244)

This commit is contained in:
Robert Reif 2015-01-09 16:08:34 +01:00 committed by Daniel Marjamäki
parent c4269b3b44
commit 6998c55680
1 changed files with 1 additions and 1 deletions

View File

@ -1619,7 +1619,7 @@ Function* SymbolDatabase::addGlobalFunctionDecl(Scope*& scope, const Token *tok,
tok1 = tok1->previous();
// find the return type
while (tok1 && Token::Match(tok1, "static|extern|const")) {
while (tok1 && Token::Match(tok1->next(), "static|extern|const")) {
if (tok1->str() == "static")
function.isStaticLocal(true);
else if (tok1->str() == "extern")