14#ifndef LLVM_CLANG_REWRITE_CORE_HTMLREWRITE_H
15#define LLVM_CLANG_REWRITE_CORE_HTMLREWRITE_H
33 const char *StartTag,
const char *EndTag,
34 bool IsTokenRange =
true);
41 const char *StartTag,
const char *EndTag) {
42 HighlightRange(R, Range.getBegin(), Range.getEnd(), StartTag, 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);
Defines the clang::SourceLocation class and associated facilities.
__device__ __2f16 float __ockl_bool s
An opaque identifier used by SourceManager which refers to a source file (MemoryBuffer) along with it...
Engages in a tight little dance with the lexer to efficiently preprocess tokens.
RewriteBuffer - As code is rewritten, SourceBuffer's from the original input with modifications get a...
Rewriter - This is the main interface to the rewrite buffers.
Encodes a location in the source.
A trivial tuple used to represent a source range.
void AddHeaderFooterInternalBuiltinCSS(Rewriter &R, FileID FID, StringRef title)
void HighlightRange(Rewriter &R, SourceLocation B, SourceLocation E, const char *StartTag, const char *EndTag, bool IsTokenRange=true)
HighlightRange - Highlight a range in the source code with the specified start/end tags.
void SyntaxHighlight(Rewriter &R, FileID FID, const Preprocessor &PP)
SyntaxHighlight - Relex the specified FileID and annotate the HTML with information about keywords,...
void AddLineNumbers(Rewriter &R, FileID FID)
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 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 ...