We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b4eae9c commit 7865648Copy full SHA for 7865648
1 file changed
lib/checkother.cpp
@@ -2299,7 +2299,7 @@ void CheckOther::checkIncompleteStatement()
2299
if (!Token::simpleMatch(tok->astParent(), ";") && !Token::simpleMatch(rtok, ";") &&
2300
!Token::Match(tok->previous(), ";|}|{ %any% ;") &&
2301
!(tok->isCpp() && tok->isCast() && !tok->astParent()) &&
2302
- !(!tok->astParent() && Token::Match(tok->previous(), "%name% () && tok->previous()->isKeyword()) &&
+ !(!tok->astParent() && Token::Match(tok->previous(), "%name% ()") && tok->previous()->isKeyword()) &&
2303
!Token::simpleMatch(tok->tokAt(-2), "for (") &&
2304
!Token::Match(tok->tokAt(-1), "%var% [") &&
2305
!(tok->str() == "," && tok->astParent() && tok->astParent()->isAssignmentOp()))
0 commit comments