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: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to