diff options
| author | Ted Kremenek <kremenek@apple.com> | 2008-04-16 16:39:56 +0000 |
|---|---|---|
| committer | Ted Kremenek <kremenek@apple.com> | 2008-04-16 16:39:56 +0000 |
| commit | f2e6fcf3bfd84460ec2c22c2c05f4e8b9c58017e (patch) | |
| tree | 461e55ea80c25b19b796dc27b5bc6e6218f7f3e1 /clang/Driver/clang.cpp | |
| parent | a3ee1a38a335828b44ec2d329a846cef292874f7 (diff) | |
| download | bcm5719-llvm-f2e6fcf3bfd84460ec2c22c2c05f4e8b9c58017e.tar.gz bcm5719-llvm-f2e6fcf3bfd84460ec2c22c2c05f4e8b9c58017e.zip | |
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.
llvm-svn: 49796
Diffstat (limited to 'clang/Driver/clang.cpp')
| -rw-r--r-- | clang/Driver/clang.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/Driver/clang.cpp b/clang/Driver/clang.cpp index a9ae98e5550..f6d5fe691a5 100644 --- a/clang/Driver/clang.cpp +++ b/clang/Driver/clang.cpp @@ -1066,11 +1066,11 @@ static ASTConsumer* CreateASTConsumer(const std::string& InFile, 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 @@ int main(int argc, char **argv) { TextDiagnostics* TextDiagClient = NULL; if (!HTMLDiag.empty()) { - DiagClient.reset(CreateHTMLDiagnosticClient(HTMLDiag)); + DiagClient.reset(CreateHTMLDiagnosticClient(HTMLDiag, NULL)); } else { // Use Text diagnostics. if (!VerifyDiagnostics) { |

