1 //===--- Rewriters.h - Rewriter 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 //===----------------------------------------------------------------------===//
10 // This header contains miscellaneous utilities for various front-end actions.
12 //===----------------------------------------------------------------------===//
14 #ifndef LLVM_CLANG_REWRITE_REWRITERS_H
15 #define LLVM_CLANG_REWRITE_REWRITERS_H
17 #include "clang/Basic/LLVM.h"
21 class PreprocessorOutputOptions;
23 /// RewriteMacrosInInput - Implement -rewrite-macros mode.
24 void RewriteMacrosInInput(Preprocessor &PP, raw_ostream *OS);
26 /// DoRewriteTest - A simple test for the TokenRewriter class.
27 void DoRewriteTest(Preprocessor &PP, raw_ostream *OS);
29 /// RewriteIncludesInInput - Implement -frewrite-includes mode.
30 void RewriteIncludesInInput(Preprocessor &PP, raw_ostream *OS,
31 const PreprocessorOutputOptions &Opts);
33 } // end namespace clang