summaryrefslogtreecommitdiffstats
path: root/clang/lib/Basic/FileManager.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-06-15 05:18:27 +0000
committerChris Lattner <sabre@nondot.org>2009-06-15 05:18:27 +0000
commit6ed7d5964eade6c3f0308a1ef1df98641ef1e526 (patch)
tree35c07bca8f5bdc37f09dcb85b5225fb518520a73 /clang/lib/Basic/FileManager.cpp
parentd9efb6ee52e0c1084494935c8c910aff70667064 (diff)
downloadbcm5719-llvm-6ed7d5964eade6c3f0308a1ef1df98641ef1e526.tar.gz
bcm5719-llvm-6ed7d5964eade6c3f0308a1ef1df98641ef1e526.zip
Minor tweak to -fdiagnostics-print-source-range-info to make it print
ranges more similar to the console output. Consider: #define FOO(X, Y) X/ Y void foo(int *P, int *Q) { FOO(P, Q); } Before we emitted: t.c:4:3:{4:3-4:6}{4:3-4:6}: error: invalid operands to binary expression ('int *' and 'int *') FOO(P, Q); ^~~~~~~~~ ... Note that while we underline the macro args that the range info just includes FOO without its macros. This change teaches the printed ranges to include macro args also so that we get: t.c:4:3:{4:3-4:12}{4:3-4:12}: error: invalid operands to binary expression ('int *' and 'int *') FOO(P, Q); ^~~~~~~~~ ... This fixes rdar://6939599 llvm-svn: 73378
Diffstat (limited to 'clang/lib/Basic/FileManager.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud