13 #ifndef LLVM_CLANG_REWRITE_FRONTEND_ASTCONSUMERS_H
14 #define LLVM_CLANG_REWRITE_FRONTEND_ASTCONSUMERS_H
23 class DiagnosticsEngine;
29 std::unique_ptr<ASTConsumer>
31 DiagnosticsEngine &Diags,
const LangOptions &LOpts,
32 bool SilenceRewriteMacroWarning);
33 std::unique_ptr<ASTConsumer>
35 std::unique_ptr<raw_ostream>
OS,
36 DiagnosticsEngine &Diags,
const LangOptions &LOpts,
37 bool SilenceRewriteMacroWarning,
bool LineInfo);
Forward-declares and imports various common LLVM datatypes that clang wants to use unqualified.
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...
The JSON file list parser is used to communicate input to InstallAPI.
std::unique_ptr< ASTConsumer > CreateObjCRewriter(const std::string &InFile, std::unique_ptr< raw_ostream > OS, DiagnosticsEngine &Diags, const LangOptions &LOpts, bool SilenceRewriteMacroWarning)
std::unique_ptr< ASTConsumer > CreateModernObjCRewriter(const std::string &InFile, std::unique_ptr< raw_ostream > OS, DiagnosticsEngine &Diags, const LangOptions &LOpts, bool SilenceRewriteMacroWarning, bool LineInfo)
std::unique_ptr< ASTConsumer > CreateHTMLPrinter(std::unique_ptr< raw_ostream > OS, Preprocessor &PP, bool SyntaxHighlight=true, bool HighlightMacros=true)
CreateHTMLPrinter - Create an AST consumer which rewrites source code to HTML with syntax highlightin...