Skip to content

Commit dbce876

Browse files
Update checkother.cpp
1 parent 7865648 commit dbce876

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/checkother.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2299,7 +2299,7 @@ void CheckOther::checkIncompleteStatement()
22992299
if (!Token::simpleMatch(tok->astParent(), ";") && !Token::simpleMatch(rtok, ";") &&
23002300
!Token::Match(tok->previous(), ";|}|{ %any% ;") &&
23012301
!(tok->isCpp() && tok->isCast() && !tok->astParent()) &&
2302-
!(!tok->astParent() && Token::Match(tok->previous(), "%name% ()") && tok->previous()->isKeyword()) &&
2302+
!(!tok->astParent() && Token::Match(tok->previous(), "%name% (") && tok->previous()->isKeyword()) &&
23032303
!Token::simpleMatch(tok->tokAt(-2), "for (") &&
23042304
!Token::Match(tok->tokAt(-1), "%var% [") &&
23052305
!(tok->str() == "," && tok->astParent() && tok->astParent()->isAssignmentOp()))

0 commit comments

Comments
 (0)