From c59665eebda0e18995432e55b43d7a3beadcb913 Mon Sep 17 00:00:00 2001 From: Ivan Komissarov Date: Sun, 18 Feb 2024 20:03:52 +0100 Subject: clang-tidy: fix 'readability-simplify-boolean-expr' Change-Id: I65a98c0f6b80773b1e8a30e6db7df3a63b521570 Reviewed-by: Christian Kandeler --- src/plugins/scanner/cpp/Lexer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/plugins') 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); -- cgit v1.2.3