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: unassignedclangb...@nondot.org
Reporter: mmanu.chaturv...@gmail.com
CC: dgre...@apple.com, llvm-bugs@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs