https://llvm.org/bugs/show_bug.cgi?id=26664

            Bug ID: 26664
           Summary: CLANG_WARN_NULLABLE_TO_NONNULL_CONVERSION not
                    recognizing 'nil' as nullable
           Product: clang
           Version: unspecified
          Hardware: Macintosh
                OS: MacOS X
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Static Analyzer
          Assignee: kreme...@apple.com
          Reporter: co...@gmx.fr
                CC: llvm-bugs@lists.llvm.org
    Classification: Unclassified

CLANG_ANALYZER_NONNULL with Xcode 7.3 Beta 3 is giving incomplete warnings.

Steps to Reproduce:

    NSString * _Nonnull foo = nil;

Actual result: no warning
Expected result: warning for converting from Nullable to Nonnull.

Workaround: one can define this macro...

    #define __DARWIN_NULL ((void * _Nullable)0)

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to