Symboldatabase: function return token (#6244)
This commit is contained in:
parent
c4269b3b44
commit
6998c55680
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue