Skip to content

Commit caabbba

Browse files
committed
Use simpleMatch
1 parent 9df7881 commit caabbba

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/valueflow.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4363,7 +4363,7 @@ static bool isUnconditionalBreakScope(const Token* const endToken)
43634363
return false;
43644364
if (!Token::simpleMatch(endToken->link(), "{"))
43654365
return false;
4366-
if (!Token::Match(endToken->tokAt(-2), "break ;") || !Token::Match(endToken->tokAt(-3), "{|}|;"))
4366+
if (!Token::simpleMatch(endToken->tokAt(-2), "break ;") || !Token::Match(endToken->tokAt(-3), "{|}|;"))
43674367
return false;
43684368
return !Token::findmatch(endToken->link(), "continue|goto", endToken);
43694369
}

0 commit comments

Comments
 (0)