[LLVMbugs] [Bug 7756] New: Analyze for missing ivars in a -copy method

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Jul 30 09:42:54 PDT 2010


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

           Summary: Analyze for missing ivars in a -copy method
           Product: clang
           Version: unspecified
          Platform: Macintosh
        OS/Version: MacOS X
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Static Analyzer
        AssignedTo: kremenek at apple.com
        ReportedBy: randy.meadows at not-pc.com
                CC: llvmbugs at cs.uiuc.edu


I just spent far too long tracking down a bug where I had added an ivar to a
class definition, and then failed to also add that ivar in a -copy method, so
that ivar did not get set correctly in the copy.

It'd be awesome if the analyzer, when it comes across a -copy-type method
implementation, would ensure that all the ivars are referenced in that method.

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