Fixed #6546 (False positive uselessAssignmentPtrArg - triggered by throw?)
This commit is contained in:
parent
449b88aa0c
commit
27388c3696
|
@ -1320,8 +1320,11 @@ bool SymbolDatabase::isFunction(const Token *tok, const Scope* outerScope, const
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
// skip over return type
|
// skip over return type
|
||||||
if (Token::Match(tok1, "%name%"))
|
if (Token::Match(tok1, "%name%")) {
|
||||||
|
if (tok1->str() == "return")
|
||||||
|
return false;
|
||||||
tok1 = tok1->previous();
|
tok1 = tok1->previous();
|
||||||
|
}
|
||||||
|
|
||||||
// skip over qualification
|
// skip over qualification
|
||||||
while (Token::simpleMatch(tok1, "::")) {
|
while (Token::simpleMatch(tok1, "::")) {
|
||||||
|
|
Loading…
Reference in New Issue