]> granicus.if.org Git - clang/commit
If a source range comes through a function-like macro expansion,
authorChris Lattner <sabre@nondot.org>
Tue, 17 Feb 2009 05:19:10 +0000 (05:19 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 17 Feb 2009 05:19:10 +0000 (05:19 +0000)
commit34837a577186f5d05ff434841e19694c438b9ac3
tree4d6afaeda09550a48a435c40c6b7aec793aaf51a
parent3891a157cc1504b1e8558077ed852fa4a9fb6ebc
If a source range comes through a function-like macro expansion,
highlight the arguments to the macro as well as the identifier.

Before:

t.c:3:9: error: no matching function for call to '__tg_acos'; candidates are:
 return acos(x);
        ^~~~

after:

t.c:3:9: error: no matching function for call to '__tg_acos'; candidates are:
 return acos(x);
        ^~~~~~~

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64743 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Driver/TextDiagnosticPrinter.cpp