diff options
author | Chris Lattner <sabre@nondot.org> | 2009-02-15 20:52:18 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-02-15 20:52:18 +0000 |
commit | e7fb48466afcbf2c4ccdfa658824282fdc3c512c (patch) | |
tree | 4c2ea5e76f59eb02d41ce34a981cf1c19227ec87 /test/Preprocessor/_Pragma-dependency.c | |
parent | 3ada6ffd92e02b02f1cdb3c2044aab24dbe0b755 (diff) |
track "just a little more" location information for macro instantiations.
Now instead of just tracking the expansion history, also track the full
range of the macro that got replaced. For object-like macros, this doesn't
change anything. For _Pragma and function-like macros, this means we track
the locations of the ')'.
This is required for PR3579 because apparently GCC uses the line of the ')'
of a function-like macro as the location to expand __LINE__ to.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64601 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Preprocessor/_Pragma-dependency.c')
-rw-r--r-- | test/Preprocessor/_Pragma-dependency.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/Preprocessor/_Pragma-dependency.c b/test/Preprocessor/_Pragma-dependency.c index f7d7efe41b..837f31d07c 100644 --- a/test/Preprocessor/_Pragma-dependency.c +++ b/test/Preprocessor/_Pragma-dependency.c @@ -1,7 +1,7 @@ // RUN: clang %s -E 2>&1 | grep 'DO_PRAGMA (STR' && -// RUN: clang %s -E 2>&1 | grep '7:12' +// RUN: clang %s -E 2>&1 | grep '7:3' #define DO_PRAGMA _Pragma #define STR "GCC dependency \"parse.y\"") -// Test that this line is printed by caret diagnostics. -DO_PRAGMA (STR + // Test that this line is printed by caret diagnostics. + DO_PRAGMA (STR |