clang API Documentation
00001 //===--- Rewriters.h - Rewriter implementations -------------*- C++ -*-===// 00002 // 00003 // The LLVM Compiler Infrastructure 00004 // 00005 // This file is distributed under the University of Illinois Open Source 00006 // License. See LICENSE.TXT for details. 00007 // 00008 //===----------------------------------------------------------------------===// 00009 // 00010 // This header contains miscellaneous utilities for various front-end actions. 00011 // 00012 //===----------------------------------------------------------------------===// 00013 00014 #ifndef LLVM_CLANG_REWRITE_FRONTEND_REWRITERS_H 00015 #define LLVM_CLANG_REWRITE_FRONTEND_REWRITERS_H 00016 00017 #include "clang/Basic/LLVM.h" 00018 00019 namespace clang { 00020 class Preprocessor; 00021 class PreprocessorOutputOptions; 00022 00023 /// RewriteMacrosInInput - Implement -rewrite-macros mode. 00024 void RewriteMacrosInInput(Preprocessor &PP, raw_ostream *OS); 00025 00026 /// DoRewriteTest - A simple test for the TokenRewriter class. 00027 void DoRewriteTest(Preprocessor &PP, raw_ostream *OS); 00028 00029 /// RewriteIncludesInInput - Implement -frewrite-includes mode. 00030 void RewriteIncludesInInput(Preprocessor &PP, raw_ostream *OS, 00031 const PreprocessorOutputOptions &Opts); 00032 00033 } // end namespace clang 00034 00035 #endif