http://llvm.org/bugs/show_bug.cgi?id=7828
Summary: Check that all paths return the proper (unowned)
retain count
Product: clang
Version: trunk
Platform: Macintosh
OS/Version: MacOS X
Status: NEW
Severity: enhancement
Priority: P
Component: Static Analyzer
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected]
Created an attachment (id=5332)
--> (http://llvm.org/bugs/attachment.cgi?id=5332)
A .m file showing an undetected under retained return from a method.
If a method returns (implicitly or explicitly) NS_RETURNS_RETAINED, the checker
could check that the returned object has exactly one unowned retain. For
example in the attached test case, if -[RandomResult godOnlyKnows] return NO,
we'll probably crash later on due to the missing retain.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- 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