aboutsummaryrefslogtreecommitdiff
path: root/include/clang/Rewrite/HTMLRewrite.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-04-16 06:32:08 +0000
committerChris Lattner <sabre@nondot.org>2008-04-16 06:32:08 +0000
commitc54d50a4180520370c12dd7d06d035263d357d56 (patch)
tree3a2ee55df61f0fcd1050077fdff6c1ab54657104 /include/clang/Rewrite/HTMLRewrite.h
parent3245a0a1c7a4fd74fca845b2edba275bb126d773 (diff)
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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@49779 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Rewrite/HTMLRewrite.h')
-rw-r--r--include/clang/Rewrite/HTMLRewrite.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/include/clang/Rewrite/HTMLRewrite.h b/include/clang/Rewrite/HTMLRewrite.h
index 520030fcdf..be16eaaab1 100644
--- a/include/clang/Rewrite/HTMLRewrite.h
+++ b/include/clang/Rewrite/HTMLRewrite.h
@@ -45,11 +45,16 @@ namespace html {
void AddHeaderFooterInternalBuiltinCSS(Rewriter& R, unsigned FileID);
/// SyntaxHighlight - Relex the specified FileID and annotate the HTML with
- /// information about keywords, macro expansions etc. This uses the macro
- /// table state from the end of the file, so it won't be perfectly perfect,
- /// but it will be reasonably close.
+ /// information about keywords, comments, etc.
void SyntaxHighlight(Rewriter &R, unsigned FileID, Preprocessor &PP);
+ /// HighlightMacros - This uses the macro table state from the end of the
+ /// file, to reexpand macros and insert (into the HTML) information about the
+ /// macro expansions. This won't be perfectly perfect, but it will be
+ /// reasonably close.
+ void HighlightMacros(Rewriter &R, unsigned FileID, Preprocessor &PP);
+
+
} // end html namespace
} // end clang namespace