[llvm-bugs] [Bug 26664] New: CLANG_WARN_NULLABLE_TO_NONNULL_CONVERSION not recognizing 'nil' as nullable
via llvm-bugs
llvm-bugs at lists.llvm.org
Thu Feb 18 09:38:22 PST 2016
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: kremenek at apple.com
Reporter: coeur at gmx.fr
CC: llvm-bugs at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20160218/f70bb2f8/attachment.html>
More information about the llvm-bugs
mailing list