[llvm-bugs] [Bug 37508] New: Clang parsing the header file in spite of not finding it
via llvm-bugs
llvm-bugs at lists.llvm.org
Thu May 17 12:00:33 PDT 2018
https://bugs.llvm.org/show_bug.cgi?id=37508
Bug ID: 37508
Summary: Clang parsing the header file in spite of not finding
it
Product: clang
Version: 4.0
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: C++
Assignee: unassignedclangbugs at nondot.org
Reporter: mmanu.chaturvedi at gmail.com
CC: dgregor at apple.com, llvm-bugs at lists.llvm.org
Created attachment 20315
--> https://bugs.llvm.org/attachment.cgi?id=20315&action=edit
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.
--
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/20180517/9e513741/attachment.html>
More information about the llvm-bugs
mailing list