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: [email protected]
ReportedBy: [email protected]
CC: [email protected]
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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs