[LLVMbugs] [Bug 7361] New: Top-level macros are not being analyzed
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Fri Jun 11 17:18:56 PDT 2010
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: kremenek at apple.com
ReportedBy: jediknil at belkadan.com
CC: llvmbugs at cs.uiuc.edu
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.
More information about the llvm-bugs
mailing list