Skip to content

Commit b259d6f

Browse files
Update checkcondition.cpp
1 parent 922bb96 commit b259d6f

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

lib/checkcondition.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -619,6 +619,8 @@ static bool isNonConstFunctionCall(const Token *ftok, const Library &library)
619619
return false;
620620
if (ftok->function() && ftok->function()->isConst())
621621
return false;
622+
if (ftok->isControlFlowKeyword())
623+
return false;
622624
return true;
623625
}
624626

0 commit comments

Comments
 (0)