https://llvm.org/bugs/show_bug.cgi?id=26684
Bug ID: 26684 Summary: False-positive with CLANG_WARN_NULLABLE_TO_NONNULL_CONVERSION and operator ?: Product: clang Version: unspecified Hardware: Macintosh OS: MacOS X Status: NEW Severity: normal Priority: P Component: Frontend Assignee: unassignedclangb...@nondot.org Reporter: co...@gmx.fr CC: llvm-bugs@lists.llvm.org Classification: Unclassified The following code produces a false-positive warning with CLANG_WARN_NULLABLE_TO_NONNULL_CONVERSION: NSString * _Nullable a = nil; NSString * _Nonnull b = @""; NSString * _Nonnull c = a ?: b; For nullability, Clang should only check the right member of operator `?:`. -- 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