1 //===--- ASTConsumers.h - ASTConsumer implementations -----------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
12 //===----------------------------------------------------------------------===//
14 #ifndef REWRITE_ASTCONSUMERS_H
15 #define REWRITE_ASTCONSUMERS_H
29 // ObjC rewriter: attempts to rewrite ObjC constructs into pure C code.
30 // This is considered experimental, and only works with Apple's ObjC runtime.
31 ASTConsumer *CreateObjCRewriter(const std::string &InFile,
32 llvm::raw_ostream *OS,
34 const LangOptions &LOpts,
35 bool SilenceRewriteMacroWarning);
37 /// CreateHTMLPrinter - Create an AST consumer which rewrites source code to
38 /// HTML with syntax highlighting suitable for viewing in a web-browser.
39 ASTConsumer *CreateHTMLPrinter(llvm::raw_ostream *OS, Preprocessor &PP,
40 bool SyntaxHighlight = true,
41 bool HighlightMacros = true);
43 } // end clang namespace