[llvm-bugs] [Bug 34221] New: Objective-C: annotation for copy-like methods

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Aug 17 07:14:03 PDT 2017


https://bugs.llvm.org/show_bug.cgi?id=34221

            Bug ID: 34221
           Summary: Objective-C: annotation for copy-like methods
           Product: clang
           Version: unspecified
          Hardware: Macintosh
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Static Analyzer
          Assignee: kremenek at apple.com
          Reporter: larry.campbell at gmail.com
                CC: llvm-bugs at lists.llvm.org

I wrote a deepMutableCopy method, and clang's static analyzer reports that I'm
autoreleasing objects too many times, because it doesn't know that my
deepMutableCopy method acts like copy, and needs a matching release or
autorelease. It would be nice if I could annotate this method so that clang
treats it like copy.

-- 
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/20170817/4d4d50f4/attachment.html>


More information about the llvm-bugs mailing list