clang-1/include/clang/Driver
Chris Lattner 676f0242a8 map source ranges through macro expansions. Before:
t.m:5:2: error: invalid operands to binary expression ('typeof(P)' (aka 'struct mystruct') and 'typeof(F)' (aka 'float'))
 MAX(P, F);
 ^~~~~~~~~
t.m:1:78: note: instantiated from:
#define MAX(A,B)    ({ __typeof__(A) __a = (A); __typeof__(B) __b = (B); __a < __b ? __b : __a; })
                                                                             ^

(no ranges on the second diagnostics)

After:

t.m:5:2: error: invalid operands to binary expression ('typeof(P)' (aka 'struct mystruct') and 'typeof(F)' (aka 'float'))
 MAX(P, F);
 ^~~~~~~~~
t.m:1:78: note: instantiated from:
#define MAX(A,B)    ({ __typeof__(A) __a = (A); __typeof__(B) __b = (B); __a < __b ? __b : __a; })
                                                                         ~~~ ^ ~~~

(ranges!)



git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65090 91177308-0d34-0410-b5e6-96231b3b80d8
2009-02-20 00:25:28 +00:00
..
CompileOptions.h move llvm backend specific #includes into Backend.cpp instead of Clang.cpp 2009-02-18 01:23:44 +00:00
InitHeaderSearch.h standardise on bastardised american spelling. 2009-02-19 06:49:30 +00:00
ManagerRegistry.h Add license comments. 2008-11-27 02:19:10 +00:00
PathDiagnosticClients.h Hook up the Plist diagnostic client to the driver. 2008-11-03 23:18:07 +00:00
TextDiagnosticBuffer.h This reworks some of the Diagnostic interfaces a bit to change how diagnostics 2008-11-18 07:04:44 +00:00
TextDiagnosticPrinter.h map source ranges through macro expansions. Before: 2009-02-20 00:25:28 +00:00