http://llvm.org/bugs/show_bug.cgi?id=18991
Bug ID: 18991
Summary: Add warning for implicit nil initialization of strong
object pointers in ARC
Product: clang
Version: 3.4
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Classification: Unclassified
I ran into what I thought was a bug in the static analyzer
<http://llvm.org/bugs/show_bug.cgi?id=18981> but was pointed out to me that
this isn't a bug since ARC initialized all strong references to nil. In this
instance it masked a bug in our code where an object wasn't initialized as we
thought. A warning in clang for this sort of situation would be appreciated.
Depending on what we were doing, this could have caused a crash (like adding to
an NSArray), but as it was it simply caused the feature to silently fail.
--
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