aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/scanner/cpp/Lexer.cpp
diff options
context:
space:
mode:
authorIvan Komissarov <ABBAPOH@gmail.com>2024-02-18 20:03:52 +0100
committerIvan Komissarov <ABBAPOH@gmail.com>2024-02-23 15:24:12 +0000
commitc59665eebda0e18995432e55b43d7a3beadcb913 (patch)
tree50917a9bb7f725a3e75ad9e30b50673b4dd2f0d7 /src/plugins/scanner/cpp/Lexer.cpp
parent60a18f09fa547af064fb851e72b816ee25bf71a3 (diff)
clang-tidy: fix 'readability-simplify-boolean-expr'
Change-Id: I65a98c0f6b80773b1e8a30e6db7df3a63b521570 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'src/plugins/scanner/cpp/Lexer.cpp')
-rw-r--r--src/plugins/scanner/cpp/Lexer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/scanner/cpp/Lexer.cpp b/src/plugins/scanner/cpp/Lexer.cpp
index ebf843aca..6793080e9 100644
--- a/src/plugins/scanner/cpp/Lexer.cpp
+++ b/src/plugins/scanner/cpp/Lexer.cpp
@@ -564,7 +564,7 @@ void Lexer::scan_helper(Token *tok)
do {
yyinp();
- if (! (isalnum(_yychar) || _yychar == '_' || _yychar == '$'))
+ if (!isalnum(_yychar) && _yychar != '_' && _yychar != '$')
break;
} while (_yychar);