http://llvm.org/bugs/show_bug.cgi?id=8568

           Summary: Objective-C: warn if a retain property setter doesn't
                    retain (or an assign does)
           Product: clang
           Version: unspecified
          Platform: Macintosh
        OS/Version: MacOS X
            Status: NEW
          Severity: normal
          Priority: P
         Component: Static Analyzer
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]


Created an attachment (id=5750)
 --> (http://llvm.org/bugs/attachment.cgi?id=5750)
Test case

It's common to accidentally provide a property setter implementation that
doesn't follow the memory management contract specified in the property
declaration. The analyzer should catch cases in which the argument to a retain
property setter goes out of scope without an incremented retain count, as well
as cases in which the argument to an assign property setter goes out of scope
with an incremented retain count.

-- 
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

Reply via email to