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/clang.cpp b/Driver/clang.cpp
index a9ae98e..f6d5fe6 100644
--- a/Driver/clang.cpp
+++ b/Driver/clang.cpp
@@ -1066,11 +1066,11 @@
       return CreateUnitValsChecker(Diag);
       
     case AnalysisGRSimpleVals:
-      return CreateGRSimpleVals(Diag, AnalyzeSpecificFunction, OutputFile,
+      return CreateGRSimpleVals(Diag, PP, AnalyzeSpecificFunction, OutputFile,
                                 VisualizeEG, TrimGraph, AnalyzeAll);
       
     case CheckerCFRef:
-      return CreateCFRefChecker(Diag, AnalyzeSpecificFunction, OutputFile,
+      return CreateCFRefChecker(Diag, PP, AnalyzeSpecificFunction, OutputFile,
                                 VisualizeEG, TrimGraph, AnalyzeAll);
       
     case TestSerialization:
@@ -1290,7 +1290,7 @@
   TextDiagnostics* TextDiagClient = NULL;
   
   if (!HTMLDiag.empty()) {
-    DiagClient.reset(CreateHTMLDiagnosticClient(HTMLDiag));
+    DiagClient.reset(CreateHTMLDiagnosticClient(HTMLDiag, NULL));
   }
   else { // Use Text diagnostics.
     if (!VerifyDiagnostics) {