Fixed #4226 (False positive: Uninitialized variable (problem with namespace ::rtl))

This commit is contained in:
Robert Reif 2012-10-14 17:25:29 +02:00 committed by Daniel Marjamäki
parent d152ec31f1
commit 2a2366b258
1 changed files with 1 additions and 1 deletions

View File

@ -837,7 +837,7 @@ bool SymbolDatabase::isFunction(const Token *tok, const Scope* outerScope, const
tok->strAt(-1) == "::" || tok->strAt(-1) == "~" || // or a scope qualifier in front of tok tok->strAt(-1) == "::" || tok->strAt(-1) == "~" || // or a scope qualifier in front of tok
outerScope->isClassOrStruct()) && // or a ctor/dtor outerScope->isClassOrStruct()) && // or a ctor/dtor
(Token::Match(tok->next()->link(), ") const| ;|{|=") || (Token::Match(tok->next()->link(), ") const| ;|{|=") ||
Token::Match(tok->next()->link(), ") : %var% (|::"))) { Token::Match(tok->next()->link(), ") : ::| %var% (|::"))) {
*funcStart = tok; *funcStart = tok;
*argStart = tok->next(); *argStart = tok->next();
return true; return true;