[LLVMbugs] [Bug 8568] New: Objective-C: warn if a retain property setter doesn't retain (or an assign does)

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Nov 8 16:38:36 PST 2010


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: kremenek at apple.com
        ReportedBy: kyle at omnigroup.com
                CC: llvmbugs at cs.uiuc.edu


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.



More information about the llvm-bugs mailing list