clang
17.0.0git
include
clang
Edit
Rewriters.h
Go to the documentation of this file.
1
//===--- Rewriters.h - Rewritings ---------------------------*- 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
#ifndef LLVM_CLANG_EDIT_REWRITERS_H
10
#define LLVM_CLANG_EDIT_REWRITERS_H
11
12
namespace
clang
{
13
class
ObjCMessageExpr;
14
class
ObjCMethodDecl;
15
class
ObjCInterfaceDecl;
16
class
ObjCProtocolDecl;
17
class
NSAPI;
18
class
EnumDecl;
19
class
TypedefDecl;
20
class
ParentMap;
21
22
namespace
edit
{
23
class
Commit;
24
25
bool
rewriteObjCRedundantCallWithLiteral
(
const
ObjCMessageExpr *Msg,
26
const
NSAPI &NS, Commit &commit);
27
28
bool
rewriteToObjCLiteralSyntax
(
const
ObjCMessageExpr *Msg,
29
const
NSAPI &NS, Commit &commit,
30
const
ParentMap *PMap);
31
32
bool
rewriteToObjCSubscriptSyntax
(
const
ObjCMessageExpr *Msg,
33
const
NSAPI &NS, Commit &commit);
34
35
}
36
37
}
// end namespace clang
38
39
#endif
clang::transformer::edit
EditGenerator edit(ASTEdit E)
Generates a single (specified) edit.
Definition:
RewriteRule.cpp:84
clang::edit::rewriteObjCRedundantCallWithLiteral
bool rewriteObjCRedundantCallWithLiteral(const ObjCMessageExpr *Msg, const NSAPI &NS, Commit &commit)
Definition:
RewriteObjCFoundationAPI.cpp:59
clang
Definition:
CalledOnceCheck.h:17
clang::edit::rewriteToObjCLiteralSyntax
bool rewriteToObjCLiteralSyntax(const ObjCMessageExpr *Msg, const NSAPI &NS, Commit &commit, const ParentMap *PMap)
Definition:
RewriteObjCFoundationAPI.cpp:339
clang::edit::rewriteToObjCSubscriptSyntax
bool rewriteToObjCSubscriptSyntax(const ObjCMessageExpr *Msg, const NSAPI &NS, Commit &commit)
Definition:
RewriteObjCFoundationAPI.cpp:290
Generated on Sat Jan 28 2023 08:31:53 for clang by
1.8.17