diff options
author | Douglas Gregor <dgregor@apple.com> | 2011-09-29 00:38:00 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2011-09-29 00:38:00 +0000 |
commit | d0e9e3a6a5b241d0f84e54694a10a26b1369e42a (patch) | |
tree | fcd2d73fdc825b237f2b8dac0cf871989236e35f /clang/lib/Rewrite/HTMLRewrite.cpp | |
parent | 6de48ee8606428d4abab270ac9f8a9d0dd9d4bc4 (diff) | |
download | bcm5719-llvm-d0e9e3a6a5b241d0f84e54694a10a26b1369e42a.tar.gz bcm5719-llvm-d0e9e3a6a5b241d0f84e54694a10a26b1369e42a.zip |
Introduce a pure virtual clone() method to DiagnosticConsumer, so that
we have the ability to create a new, distict diagnostic consumer when
we go off and build a module. This avoids the currently horribleness
where the same diagnostic consumer sees diagnostics for multiple
translation units (and multiple SourceManagers!) causing all sorts of havok.
llvm-svn: 140743
Diffstat (limited to 'clang/lib/Rewrite/HTMLRewrite.cpp')
-rw-r--r-- | clang/lib/Rewrite/HTMLRewrite.cpp | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/clang/lib/Rewrite/HTMLRewrite.cpp b/clang/lib/Rewrite/HTMLRewrite.cpp index dcf52f9e3cb..ba39602d162 100644 --- a/clang/lib/Rewrite/HTMLRewrite.cpp +++ b/clang/lib/Rewrite/HTMLRewrite.cpp @@ -440,17 +440,6 @@ void html::SyntaxHighlight(Rewriter &R, FileID FID, const Preprocessor &PP) { } } -namespace { -/// IgnoringDiagConsumer - This is a diagnostic client that just ignores all -/// diags. -class IgnoringDiagConsumer : public DiagnosticConsumer { - void HandleDiagnostic(DiagnosticsEngine::Level DiagLevel, - const Diagnostic &Info) { - // Just ignore it. - } -}; -} - /// HighlightMacros - This uses the macro table state from the end of the /// file, to re-expand macros and insert (into the HTML) information about the /// macro expansions. This won't be perfectly perfect, but it will be |