<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 - Clang parsing the header file in spite of not finding it"
   href="https://bugs.llvm.org/show_bug.cgi?id=37508">37508</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Clang parsing the header file in spite of not finding it
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>4.0
          </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>mmanu.chaturvedi@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>dgregor@apple.com, llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=20315" name="attach_20315" title="Can be run like this: `bash main.sh clang-4.0`">attachment 20315</a> <a href="attachment.cgi?id=20315&action=edit" title="Can be run like this: `bash main.sh clang-4.0`">[details]</a></span>
Can be run like this: `bash main.sh clang-4.0`

This may not be a bug but a feature.  Script to reproduce is attached.  

When gcc-5.4 is used as the compiler, we end up with one error which says that
the compiler couldn't find the header file. 

However, when clang-4.0 is used as the compiler, we end up with two error
messages, one claiming that it couldn't find the header file and that it can be
included with quotes, and then that there is a syntax error in the header file. 

It seems like this is some kind of "FixIt" that clang-4.0 does by looking into
the directory and making a useful recommendation, but I wonder if parsing the
header file anyways and displaying syntax errors is something it should be
doing.

Sorry for the spam if this is behavior is intentional.</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>