diff options
author | Chris Lattner <sabre@nondot.org> | 2009-12-04 07:06:35 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-12-04 07:06:35 +0000 |
commit | 2e77aa1c2a596b66d436d27b8ec2ea695cf9a748 (patch) | |
tree | d0359e5524ee44d70eaf735b41de91880adb4ba3 /lib/Frontend/ASTUnit.cpp | |
parent | bfb4fc9ebc64ec3db597441d4b79adcd0f69cf58 (diff) |
Use PresumedLoc when emitting the 'included from' diagnostics. For a malformed
test like this:
#line 4 "foo"
#define XX ?
#if XX
#endif
We now emit:
In file included from t.c:7:
foo:7:5: error: invalid token at start of a preprocessor expression
#if XX
^
foo:5:12: note: instantiated from:
#define XX ?
^
instead of:
In file included from t.c:7:
foo:7:5: error: invalid token at start of a preprocessor expression
#if XX
^
./t.h:6:12: note: instantiated from:
#define XX ?
^
(where the note doesn't obey #line or print the include stack when needed).
This fixes PR5617
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@90554 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Frontend/ASTUnit.cpp')
0 files changed, 0 insertions, 0 deletions