]> granicus.if.org Git - clang/commit
Improve the printing of ranges when macros are involved.
authorRichard Trieu <rtrieu@google.com>
Thu, 24 Sep 2015 01:21:01 +0000 (01:21 +0000)
committerRichard Trieu <rtrieu@google.com>
Thu, 24 Sep 2015 01:21:01 +0000 (01:21 +0000)
commit9fed9c10d9fd6d6cff915080b104f3d481ac10aa
tree86e4ab58b553cb2829b7bcc199a7c9a57e0aae09
parent0461540c59362540245492dccc0883dea485554c
Improve the printing of ranges when macros are involved.

Trace the ranges through the macro backtrace better.  This allows better
range highlighting through all levels of the macro bracktrace.  Also some
improvements to backtrace printer for omitting different backtraces.

Patch by Zhengkai Wu.

Differential Revision: http://reviews.llvm.org/D12379

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@248454 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/SourceManager.h
lib/Basic/SourceManager.cpp
lib/Frontend/DiagnosticRenderer.cpp
test/Index/fix-its.m
test/Misc/caret-diags-macros.c
test/Misc/diag-macro-backtrace2.c
test/Misc/reduced-diags-macros.cpp
test/Misc/serialized-diags.c