Clang Project

clang_source_code/include/clang/Rewrite/Frontend/Rewriters.h
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
18namespace clang {
19class Preprocessor;
20class PreprocessorOutputOptions;
21
22/// RewriteMacrosInInput - Implement -rewrite-macros mode.
23void RewriteMacrosInInput(Preprocessor &PPraw_ostream *OS);
24
25/// DoRewriteTest - A simple test for the TokenRewriter class.
26void DoRewriteTest(Preprocessor &PPraw_ostream *OS);
27
28/// RewriteIncludesInInput - Implement -frewrite-includes mode.
29void RewriteIncludesInInput(Preprocessor &PPraw_ostream *OS,
30                            const PreprocessorOutputOptions &Opts);
31
32}  // end namespace clang
33
34#endif
35