[llvm-bugs] [Bug 34221] New: Objective-C: annotation for copy-like methods
llvm-bugs at lists.llvm.org
Thu Aug 17 07:14:03 PDT 2017
Bug ID: 34221
Summary: Objective-C: annotation for copy-like methods
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...
More information about the llvm-bugs