Fixed bailoutFunctionPar() for temlate functions (#7396)
This commit is contained in:
parent
f5bf0ff824
commit
23202d9442
|
@ -119,7 +119,9 @@ static bool bailoutFunctionPar(const Token *tok, const ValueFlow::Value &value,
|
|||
tok = tok->previous();
|
||||
}
|
||||
tok = tok ? tok->previous() : nullptr;
|
||||
if (!Token::Match(tok,"%name% ("))
|
||||
if (tok && tok->link() && tok->str() == ">")
|
||||
tok = tok->link()->previous();
|
||||
if (!Token::Match(tok, "%name% ("))
|
||||
return false; // not a function => do not bailout
|
||||
|
||||
if (!tok->function()) {
|
||||
|
|
Loading…
Reference in New Issue