[LLVMbugs] [Bug 18991] New: Add warning for implicit nil initialization of strong object pointers in ARC
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Thu Feb 27 08:39:48 PST 2014
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: unassignedclangbugs at nondot.org
Reporter: mshields at mac.com
CC: llvmbugs at cs.uiuc.edu
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20140227/33945586/attachment.html>
More information about the llvm-bugs
mailing list