Add a proper algorithm to compute accurate source ranges for diagnostics with
authorEli Friedman <eli.friedman@gmail.com>
Sat, 3 Nov 2012 03:36:51 +0000 (03:36 +0000)
committerEli Friedman <eli.friedman@gmail.com>
Sat, 3 Nov 2012 03:36:51 +0000 (03:36 +0000)
commit34ff0ea522e91b8a0c84a88ef0e1b9c9ef4fb30a
treebfdc80b164d4efb7816b62fc8060845518ed28dc
parent8d1f6ed9a862a516e50f40b88bae09205316b10a
Add a proper algorithm to compute accurate source ranges for diagnostics with
caret locations and source ranges in macros.  Makes ranges more accurate
in some cases, and fixes an assertion failure.

Fixes <rdar://problem/12472249>.

llvm-svn: 167353
clang/lib/Frontend/DiagnosticRenderer.cpp
clang/lib/Frontend/TextDiagnostic.cpp
clang/test/Misc/caret-diags-macros.c