diff options
author | Chandler Carruth <chandlerc@gmail.com> | 2011-10-15 12:07:47 +0000 |
---|---|---|
committer | Chandler Carruth <chandlerc@gmail.com> | 2011-10-15 12:07:47 +0000 |
commit | cae9ab1a8af46643f8cf89399c9ccfb28fba0c36 (patch) | |
tree | 4088411282c55e7d9f1feac38886065a2af39fa0 /include/clang/Frontend/TextDiagnosticPrinter.h | |
parent | f54a61454e548fff63d6ce5700ecc2958297207e (diff) |
Sink the include stack printing into the generic text diagnostic
utility. This is a particularly nice win because it removes a pile of
parameters from these routines. Also name them a bit better. I'm trying
to follow the pattern of 'emit' routines writing directly to what is
expected to be the final output, while 'print' routines take a output
stream argument and can be used to build up intermediate buffers, etc.
Also, fix a bug I spotted by inspection from my last commit where
'LastLoc' and 'LastNonNoteLoc' were reversed. It's really scary that
this didn't trigger a single test failure. Will be working on tests for
more of this functionality now.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@142069 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Frontend/TextDiagnosticPrinter.h')
-rw-r--r-- | include/clang/Frontend/TextDiagnosticPrinter.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/include/clang/Frontend/TextDiagnosticPrinter.h b/include/clang/Frontend/TextDiagnosticPrinter.h index 80fffd1684..b7c91c2e50 100644 --- a/include/clang/Frontend/TextDiagnosticPrinter.h +++ b/include/clang/Frontend/TextDiagnosticPrinter.h @@ -53,9 +53,6 @@ public: LangOpts = 0; } - void PrintIncludeStack(DiagnosticsEngine::Level Level, SourceLocation Loc, - const SourceManager &SM); - virtual void HandleDiagnostic(DiagnosticsEngine::Level Level, const Diagnostic &Info); |