[LLVMbugs] [Bug 18050] New: clang and analyzer don't complain about conditions that are always true

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sun Nov 24 14:27:23 PST 2013


http://llvm.org/bugs/show_bug.cgi?id=18050

            Bug ID: 18050
           Summary: clang and analyzer don't complain about conditions
                    that are always true
           Product: clang
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: Static Analyzer
          Assignee: kremenek at apple.com
          Reporter: mayer.julian at googlemail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

static NSString *const bla = @"bla";

if (bla)
    NSLog(@"always true");

if (@"blabla")
    NSLog(@"always true");



both conditions don't generate a warning with clang even with -Weverything and
even the static analyzer doesn't complain although the conditions are bound to
be always true.

-- 
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/20131124/5a20c100/attachment.html>


More information about the llvm-bugs mailing list