15 #ifndef LLVM_CLANG_REWRITE_CORE_HTMLREWRITE_H 16 #define LLVM_CLANG_REWRITE_CORE_HTMLREWRITE_H 34 const char *StartTag,
const char *EndTag);
41 const char *StartTag,
const char *EndTag) {
48 const char *BufferStart,
49 const char *StartTag,
const char *EndTag);
54 bool EscapeSpaces =
false,
bool ReplaceTabs =
false);
61 bool EscapeSpaces =
false,
bool ReplaceTabs =
false);
RewriteBuffer - As code is rewritten, SourceBuffer's from the original input with modifications get a...
void HighlightMacros(Rewriter &R, FileID FID, const Preprocessor &PP)
HighlightMacros - This uses the macro table state from the end of the file, to reexpand macros and in...
void AddLineNumbers(Rewriter &R, FileID FID)
void SyntaxHighlight(Rewriter &R, FileID FID, const Preprocessor &PP)
SyntaxHighlight - Relex the specified FileID and annotate the HTML with information about keywords...
SourceLocation getEnd() const
Encodes a location in the source.
void EscapeText(Rewriter &R, FileID FID, bool EscapeSpaces=false, bool ReplaceTabs=false)
EscapeText - HTMLize a specified file so that special characters are are translated so that they are ...
An opaque identifier used by SourceManager which refers to a source file (MemoryBuffer) along with it...
Dataflow Directional Tag Classes.
void AddHeaderFooterInternalBuiltinCSS(Rewriter &R, FileID FID, StringRef title)
Rewriter - This is the main interface to the rewrite buffers.
Defines the clang::SourceLocation class and associated facilities.
A trivial tuple used to represent a source range.
SourceLocation getBegin() const
Engages in a tight little dance with the lexer to efficiently preprocess tokens.
void HighlightRange(Rewriter &R, SourceLocation B, SourceLocation E, const char *StartTag, const char *EndTag)
HighlightRange - Highlight a range in the source code with the specified start/end tags...