[llvm-bugs] [Bug 52296] New: alpha.core.BoolAssignment does not work (at least for C and C++)

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Oct 25 11:03:50 PDT 2021


            Bug ID: 52296
           Summary: alpha.core.BoolAssignment does not work (at least for
                    C and C++)
           Product: clang
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Static Analyzer
          Assignee: dcoughlin at apple.com
          Reporter: nok.raven at gmail.com
                CC: dcoughlin at apple.com, llvm-bugs at lists.llvm.org

I am not sure whether alpha.core.BoolAssignment is supposed to work with C and
C++ code
suggests it is only for ObjC?) though source code
might indicate it should, but the next code (derived from the documentation
example) does not produce a warning:

#include <stdbool.h>
typedef int BOOL;
void test() {
  BOOL foo = -1;
  _Bool bar = -1;
  bool qaz = -1;


See also

You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20211025/093a8755/attachment.html>

More information about the llvm-bugs mailing list