[llvm-bugs] [Bug 36616] New: -Wheader-hygiene is failing on unified builds
via llvm-bugs
llvm-bugs at lists.llvm.org
Tue Mar 6 06:45:38 PST 2018
https://bugs.llvm.org/show_bug.cgi?id=36616
Bug ID: 36616
Summary: -Wheader-hygiene is failing on unified builds
Product: clang
Version: unspecified
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: C++
Assignee: unassignedclangbugs at nondot.org
Reporter: sylvestre at debian.org
CC: dgregor at apple.com, erg at chromium.org,
llvm-bugs at lists.llvm.org
Some projects (ex firefox) are using some unified build technics.
This is causing -Wheader-hygiene to be unusable.
--- foo.cpp ---
#include "bar.cpp"
--- bar.cpp ---
$ cat bar.cpp
using namespace std;
$ clang++-7 -c -Wheader-hygiene foo.cpp
[...]
./bar.cpp:1:17: warning: using namespace directive in global context in header
[-Wheader-hygiene]
2 warnings generated.
Maybe we should check for the extension of the file being included?!
--
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/20180306/32f60dc5/attachment.html>
More information about the llvm-bugs
mailing list