http://llvm.org/bugs/show_bug.cgi?id=7361
Summary: Top-level macros are not being analyzed
Product: clang
Version: trunk
Platform: Macintosh
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: Static Analyzer
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected]
The following example should generate a warning but does not:
typedef typeof(sizeof(int)) size_t;
void *malloc(size_t);
#define MAKE_TEST_FN() \
void test (unsigned a) {\
char* b = malloc(1);\
}
MAKE_TEST_FN() // expected-warning{{leak}}
--
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