| 1 | |
| 2 | |
| 3 | |
| 4 | |
| 5 | |
| 6 | |
| 7 | |
| 8 | |
| 9 | |
| 10 | |
| 11 | |
| 12 | |
| 13 | #ifndef LLVM_CLANG_REWRITE_FRONTEND_ASTCONSUMERS_H |
| 14 | #define LLVM_CLANG_REWRITE_FRONTEND_ASTCONSUMERS_H |
| 15 | |
| 16 | #include "clang/Basic/LLVM.h" |
| 17 | #include <memory> |
| 18 | #include <string> |
| 19 | |
| 20 | namespace clang { |
| 21 | |
| 22 | class ASTConsumer; |
| 23 | class DiagnosticsEngine; |
| 24 | class LangOptions; |
| 25 | class Preprocessor; |
| 26 | |
| 27 | |
| 28 | |
| 29 | std::unique_ptr<ASTConsumer> |
| 30 | CreateObjCRewriter(const std::string &InFile, std::unique_ptr<raw_ostream> OS, |
| 31 | DiagnosticsEngine &Diags, const LangOptions &LOpts, |
| 32 | bool SilenceRewriteMacroWarning); |
| 33 | std::unique_ptr<ASTConsumer> |
| 34 | CreateModernObjCRewriter(const std::string &InFile, |
| 35 | std::unique_ptr<raw_ostream> OS, |
| 36 | DiagnosticsEngine &Diags, const LangOptions &LOpts, |
| 37 | bool SilenceRewriteMacroWarning, bool LineInfo); |
| 38 | |
| 39 | |
| 40 | |
| 41 | std::unique_ptr<ASTConsumer> CreateHTMLPrinter(std::unique_ptr<raw_ostream> OS, |
| 42 | Preprocessor &PP, |
| 43 | bool SyntaxHighlight = true, |
| 44 | bool HighlightMacros = true); |
| 45 | |
| 46 | } |
| 47 | |
| 48 | #endif |
| 49 | |