fix internal message: [lib/valueflow.cpp:239]: (warning) Found simple pattern inside Token::Match() call: "} ;"
This commit is contained in:
parent
29db3eb848
commit
dd70b6e0cd
|
@ -236,7 +236,7 @@ static bool bailoutSelfAssignment(const Token * const tok)
|
|||
static bool isReturn(const Token *tok)
|
||||
{
|
||||
const Token *prev = tok ? tok->previous() : nullptr;
|
||||
if (Token::Match(prev ? prev->previous() : nullptr, "} ;"))
|
||||
if (Token::simpleMatch(prev ? prev->previous() : nullptr, "} ;"))
|
||||
prev = prev->previous();
|
||||
|
||||
if (Token::simpleMatch(prev, "}")) {
|
||||
|
|
Loading…
Reference in New Issue