http://llvm.org/bugs/show_bug.cgi?id=8184
Summary: Analyser does not understand __attribute__((cleanup))
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]
For exception-safe destruction of Objective-C objects, we use a macro that
declares them using __attribute__((cleanup)) with a cleanup function that sends
a -release message. This ensures that the object is freed when the function
exits, either normally or via unwinding. The analyser, however, does not take
the cleanup function into account and so reports a leak for every variable
declared in this way.
--
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