Hook up HTMLDiagnostics to use Chris's new syntax highlighting. --html-diags
currently doesn't pass in the Preprocessor from the driver, so we don't get
syntax highlighting when we create HTMLDiagnostics in that way.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@49796 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/Driver/HTMLDiagnostics.h b/Driver/HTMLDiagnostics.h
index 172c002..146c2cc 100644
--- a/Driver/HTMLDiagnostics.h
+++ b/Driver/HTMLDiagnostics.h
@@ -18,8 +18,10 @@
namespace clang {
class PathDiagnosticClient;
+ class Preprocessor;
- PathDiagnosticClient* CreateHTMLDiagnosticClient(const std::string& prefix);
+ PathDiagnosticClient* CreateHTMLDiagnosticClient(const std::string& prefix,
+ Preprocessor* PP);
}
#endif