]> granicus.if.org Git - clang/commit
Now that the structure of this is more reasonably laid out, fix a long
authorChandler Carruth <chandlerc@gmail.com>
Sun, 16 Oct 2011 07:20:28 +0000 (07:20 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Sun, 16 Oct 2011 07:20:28 +0000 (07:20 +0000)
commit4ba55659982bf45eedc9d32851815e5c4b6d8460
tree854c86340d5fa10ca5b2132b62e965e60f345a35
parente0376c03b7f7af8053b21c9d2f0c3b28f75e90b6
Now that the structure of this is more reasonably laid out, fix a long
standing deficiency: we were providing no macro backtrace information
whenever caret diagnostics were turned off. This sinks the logic for
suppressing the code snippet and caret to the code that actually prints
tho code snippet and caret. Along the way, clean up the naming of
functions, remove some now fixed FIXMEs, and generally improve the
wording and logic of this process.

Add a test case exerecising this functionality. It is notable that the
resulting messages are extremely low quality. I'm working on a follow-up
patch that should address this and have left a FIXME in the test case.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@142120 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Frontend/TextDiagnostic.h
lib/Frontend/TextDiagnostic.cpp
test/Misc/macro-backtrace.c