diff options
author | Chris Lattner <sabre@nondot.org> | 2008-04-16 06:32:08 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-04-16 06:32:08 +0000 |
commit | a5a75e7a106aa58c65ae9b5e42128e1278542f67 (patch) | |
tree | 8fefaff55dcb67743110cc6a0e9507bb00769e0c /clang/Driver/HTMLPrint.cpp | |
parent | 060d8aa2edceb01c5dd6e3b9bf248bf0c73b6d4e (diff) | |
download | bcm5719-llvm-a5a75e7a106aa58c65ae9b5e42128e1278542f67.tar.gz bcm5719-llvm-a5a75e7a106aa58c65ae9b5e42128e1278542f67.zip |
split syntax highlighting of macros from keywords and comments,
allowing us to use a cheaper means to highlight keywords and making
it so that comments won't foul up macro expansions.
Start highlighting macro expansions.
llvm-svn: 49779
Diffstat (limited to 'clang/Driver/HTMLPrint.cpp')
-rw-r--r-- | clang/Driver/HTMLPrint.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/clang/Driver/HTMLPrint.cpp b/clang/Driver/HTMLPrint.cpp index cb32afd8175..2b014899631 100644 --- a/clang/Driver/HTMLPrint.cpp +++ b/clang/Driver/HTMLPrint.cpp @@ -61,8 +61,10 @@ HTMLPrinter::~HTMLPrinter() { // 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 (PP) + if (PP) { html::SyntaxHighlight(R, FileID, *PP); + html::HighlightMacros(R, FileID, *PP); + } // Open the output. |