We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 59aaaf1 commit dff9a37Copy full SHA for dff9a37
1 file changed
lib/checkother.cpp
@@ -314,7 +314,7 @@ void CheckOther::warningOldStylePointerCast()
314
tok = scope->bodyStart;
315
for (; tok && tok != scope->bodyEnd; tok = tok->next()) {
316
// Old style pointer casting..
317
- if (tok->str() != "(")
+ if (!tok->isCast() || tok->isBinaryOp())
318
continue;
319
const Token* castTok = tok->next();
320
while (Token::Match(castTok, "const|volatile|class|struct|union|%type%|::")) {
0 commit comments