clang 19.0.0git
Rewriters.h
Go to the documentation of this file.
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 &PP, raw_ostream *OS);
24
25/// DoRewriteTest - A simple test for the TokenRewriter class.
26void DoRewriteTest(Preprocessor &PP, raw_ostream *OS);
27
28/// RewriteIncludesInInput - Implement -frewrite-includes mode.
29void RewriteIncludesInInput(Preprocessor &PP, raw_ostream *OS,
30 const PreprocessorOutputOptions &Opts);
31
32} // end namespace clang
33
34#endif
Forward-declares and imports various common LLVM datatypes that clang wants to use unqualified.
The JSON file list parser is used to communicate input to InstallAPI.
void DoRewriteTest(Preprocessor &PP, raw_ostream *OS)
DoRewriteTest - A simple test for the TokenRewriter class.
Definition: RewriteTest.cpp:18
void RewriteIncludesInInput(Preprocessor &PP, raw_ostream *OS, const PreprocessorOutputOptions &Opts)
RewriteIncludesInInput - Implement -frewrite-includes mode.
void RewriteMacrosInInput(Preprocessor &PP, raw_ostream *OS)
RewriteMacrosInInput - Implement -rewrite-macros mode.