Details | Last modification | View Log | RSS feed
| Rev | Author | Line No. | Line |
|---|---|---|---|
| 14 | pmbaty | 1 | //===--- Rewriters.h - Rewriter implementations -------------*- C++ -*-===// |
| 2 | // |
||
| 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 |
||
| 6 | // |
||
| 7 | //===----------------------------------------------------------------------===// |
||
| 8 | // |
||
| 9 | // This header contains miscellaneous utilities for various front-end actions. |
||
| 10 | // |
||
| 11 | //===----------------------------------------------------------------------===// |
||
| 12 | |||
| 13 | #ifndef LLVM_CLANG_REWRITE_FRONTEND_REWRITERS_H |
||
| 14 | #define LLVM_CLANG_REWRITE_FRONTEND_REWRITERS_H |
||
| 15 | |||
| 16 | #include "clang/Basic/LLVM.h" |
||
| 17 | |||
| 18 | namespace clang { |
||
| 19 | class Preprocessor; |
||
| 20 | class PreprocessorOutputOptions; |
||
| 21 | |||
| 22 | /// RewriteMacrosInInput - Implement -rewrite-macros mode. |
||
| 23 | void RewriteMacrosInInput(Preprocessor &PP, raw_ostream *OS); |
||
| 24 | |||
| 25 | /// DoRewriteTest - A simple test for the TokenRewriter class. |
||
| 26 | void DoRewriteTest(Preprocessor &PP, raw_ostream *OS); |
||
| 27 | |||
| 28 | /// RewriteIncludesInInput - Implement -frewrite-includes mode. |
||
| 29 | void RewriteIncludesInInput(Preprocessor &PP, raw_ostream *OS, |
||
| 30 | const PreprocessorOutputOptions &Opts); |
||
| 31 | |||
| 32 | } // end namespace clang |
||
| 33 | |||
| 34 | #endif |