https://bugs.llvm.org/show_bug.cgi?id=38094
Bug ID: 38094
Summary: Wrong macro redefinition report when using precompiled
headers
Product: clang
Version: 6.0
Hardware: PC
OS: All
Status: NEW
Severity: enhancement
Priority: P
Component: libclang
Assignee: unassignedclangb...@nondot.org
Reporter: cont...@micbou.com
CC: kli...@google.com, llvm-bugs@lists.llvm.org
Given the file:
```test.c
#undef TEST
#define TEST 1
```
Running the command:
```
CINDEXTEST_EDITING=1 c-index-test -test-load-source local test.c -DTEST=2
```
results in the incorrect warning:
```
// CHECK: <invalid loc>:1:9: macro definition=TEST
warning: 'TEST' macro redefined [-Wmacro-redefined]
```
There is no warning if CINDEXTEST_EDITING is not set (more precisely if the
CXTranslationUnit_PrecompiledPreamble flag is not set). This happens with Clang
6.0.1.
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs