14 #ifndef LLVM_CLANG_REWRITE_FRONTEND_ASTCONSUMERS_H
15 #define LLVM_CLANG_REWRITE_FRONTEND_ASTCONSUMERS_H
24 class DiagnosticsEngine;
30 std::unique_ptr<ASTConsumer>
32 DiagnosticsEngine &Diags,
const LangOptions &LOpts,
33 bool SilenceRewriteMacroWarning);
34 std::unique_ptr<ASTConsumer>
36 std::unique_ptr<raw_ostream> OS,
37 DiagnosticsEngine &Diags,
const LangOptions &LOpts,
38 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...
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...
Forward-declares and imports various common LLVM datatypes that clang wants to use unqualified...
std::unique_ptr< ASTConsumer > CreateObjCRewriter(const std::string &InFile, std::unique_ptr< raw_ostream > OS, DiagnosticsEngine &Diags, const LangOptions &LOpts, bool SilenceRewriteMacroWarning)
void SyntaxHighlight(Rewriter &R, FileID FID, const Preprocessor &PP)
SyntaxHighlight - Relex the specified FileID and annotate the HTML with information about keywords...
std::unique_ptr< ASTConsumer > CreateModernObjCRewriter(const std::string &InFile, std::unique_ptr< raw_ostream > OS, DiagnosticsEngine &Diags, const LangOptions &LOpts, bool SilenceRewriteMacroWarning, bool LineInfo)