<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - -Wheader-hygiene is failing on unified builds"
   href="https://bugs.llvm.org/show_bug.cgi?id=36616">36616</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>-Wheader-hygiene is failing on unified builds
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>enhancement
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>C++
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedclangbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>sylvestre@debian.org
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>dgregor@apple.com, erg@chromium.org, llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>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?!</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>