aboutsummaryrefslogtreecommitdiff
path: root/Driver/HTMLPrint.cpp
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2008-04-16 16:39:56 +0000
committerTed Kremenek <kremenek@apple.com>2008-04-16 16:39:56 +0000
commit47abe7690491f28da5978225801ae146810bd388 (patch)
tree46b932af088c0281c1724a9cc2d85ba8f782dc5b /Driver/HTMLPrint.cpp
parent33c6369f799b0bf9f185ab15d859cb66f37e8c84 (diff)
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
Diffstat (limited to 'Driver/HTMLPrint.cpp')
-rw-r--r--Driver/HTMLPrint.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/Driver/HTMLPrint.cpp b/Driver/HTMLPrint.cpp
index 2b01489963..54678dea3e 100644
--- a/Driver/HTMLPrint.cpp
+++ b/Driver/HTMLPrint.cpp
@@ -59,8 +59,10 @@ HTMLPrinter::~HTMLPrinter() {
html::AddLineNumbers(R, FileID);
html::AddHeaderFooterInternalBuiltinCSS(R, FileID);
- // If we have a preprocessor, relex the file and syntax hilight. We might not
- // have a preprocessor if we come from a deserialized AST file, for example.
+ // If we have a preprocessor, relex the file and syntax highlight.
+ // We might not have a preprocessor if we come from a deserialized AST file,
+ // for example.
+
if (PP) {
html::SyntaxHighlight(R, FileID, *PP);
html::HighlightMacros(R, FileID, *PP);