We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 772b44d commit 3f2d9c0Copy full SHA for 3f2d9c0
1 file changed
lib/checkfunctions.cpp
@@ -204,7 +204,7 @@ void CheckFunctions::checkIgnoredReturnValue()
204
else if (Token::Match(tok, "[(<]") && tok->link())
205
tok = tok->link();
206
207
- if (tok->varId() || !Token::Match(tok, "%name% ("))
+ if (tok->varId() || !Token::Match(tok, "%name% (") || tok->isKeyword())
208
continue;
209
210
if (tok->next()->astParent())
0 commit comments