[llvm-bugs] [Bug 38094] New: Wrong macro redefinition report when using precompiled headers
via llvm-bugs
llvm-bugs at lists.llvm.org
Sun Jul 8 15:08:49 PDT 2018
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: unassignedclangbugs at nondot.org
Reporter: contact at micbou.com
CC: klimek at google.com, llvm-bugs at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20180708/03a8ac68/attachment.html>
More information about the llvm-bugs
mailing list