13#ifndef LLVM_CLANG_REWRITE_FRONTEND_ASTCONSUMERS_H
14#define LLVM_CLANG_REWRITE_FRONTEND_ASTCONSUMERS_H
23class DiagnosticsEngine;
29std::unique_ptr<ASTConsumer>
32 bool SilenceRewriteMacroWarning);
33std::unique_ptr<ASTConsumer>
35 std::unique_ptr<raw_ostream> OS,
37 bool SilenceRewriteMacroWarning,
bool LineInfo);
43 bool SyntaxHighlight =
true,
44 bool HighlightMacros =
true);
Forward-declares and imports various common LLVM datatypes that clang wants to use unqualified.
Concrete class used by the front-end to report problems and issues.
Keeps track of the various options that can be enabled, which controls the dialect of C or C++ that i...
Engages in a tight little dance with the lexer to efficiently preprocess tokens.
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...