Issue 89805
Summary clang/lib/Lex/Pragma.cpp:1447:14: style: Suspicious condition
Labels clang
Assignees
Reporter dcb314
    Static analyser cppcheck says:

clang/lib/Lex/Pragma.cpp:1447:14: style: Suspicious condition (assignment + comparison); Clarify _expression_ with parentheses. [clarifyCondition]

Source code is

         if ((SpecifierValid = SpecifierInt != -1))

I suspect the following code was intended:

         if (SpecifierValid = (SpecifierInt != -1))

_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to