14#ifndef LLVM_CLANG_REWRITE_CORE_HTMLREWRITE_H
15#define LLVM_CLANG_REWRITE_CORE_HTMLREWRITE_H
45 const char *StartTag,
const char *EndTag,
46 bool IsTokenRange =
true);
53 const char *StartTag,
const char *EndTag) {
60 const char *BufferStart,
const char *StartTag,
66 bool EscapeSpaces =
false,
bool ReplaceTabs =
false);
73 bool EscapeSpaces =
false,
bool ReplaceTabs =
false);
Defines the clang::SourceLocation class and associated facilities.
TypePropertyCache< Private > Cache
__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.
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.
RelexRewriteCacheRef instantiateRelexRewriteCache()
If you need to rewrite the same file multiple times, you can instantiate a RelexRewriteCache and refe...
void AddLineNumbers(Rewriter &R, FileID FID)
void SyntaxHighlight(Rewriter &R, FileID FID, const Preprocessor &PP, RelexRewriteCacheRef Cache=nullptr)
SyntaxHighlight - Relex the specified FileID and annotate the HTML with information about keywords,...
void HighlightMacros(Rewriter &R, FileID FID, const Preprocessor &PP, RelexRewriteCacheRef Cache=nullptr)
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 ...
std::shared_ptr< RelexRewriteCache > RelexRewriteCacheRef
The JSON file list parser is used to communicate input to InstallAPI.
Diagnostic wrappers for TextAPI types for error reporting.