[LLVMbugs] [Bug 8124] New: copy is only important at the start of a method name
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Thu Sep 9 15:56:41 PDT 2010
http://llvm.org/bugs/show_bug.cgi?id=8124
Summary: copy is only important at the start of a method name
Product: clang
Version: trunk
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: Static Analyzer
AssignedTo: kremenek at apple.com
ReportedBy: csdavec at swan.ac.uk
CC: llvmbugs at cs.uiuc.edu
The analyser produces this:
d = [NSDataClass dataWithBytesNoCopy: b length: l];
- 6 Method returns an Objective-C object with a +1 retain count (owning
reference)
It appears to be treating this method as returning an owning reference because
it contains the word copy. It should be checking if the method starts with
copy (e.g. -copy, -copyWithZone:).
--
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