1 //===--- Rewriters.h - Rewriter implementations -------------*- C++ -*-===//
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
9 // This header contains miscellaneous utilities for various front-end actions.
11 //===----------------------------------------------------------------------===//
13 #ifndef LLVM_CLANG_REWRITE_FRONTEND_REWRITERS_H
14 #define LLVM_CLANG_REWRITE_FRONTEND_REWRITERS_H
16 #include "clang/Basic/LLVM.h"
20 class PreprocessorOutputOptions;
22 /// RewriteMacrosInInput - Implement -rewrite-macros mode.
23 void RewriteMacrosInInput(Preprocessor &PP, raw_ostream *OS);
25 /// DoRewriteTest - A simple test for the TokenRewriter class.
26 void DoRewriteTest(Preprocessor &PP, raw_ostream *OS);
28 /// RewriteIncludesInInput - Implement -frewrite-includes mode.
29 void RewriteIncludesInInput(Preprocessor &PP, raw_ostream *OS,
30 const PreprocessorOutputOptions &Opts);
32 } // end namespace clang