41 : Body(nullptr), Pass(pass) { }
43 void transformBody(
Stmt *body,
Decl *ParentD) {
59 std::string retStr =
")) return ";
67 bool isRemovable(
Expr *
E)
const {
68 return Removables.count(
E);
Defines the clang::ASTContext interface.
TranslationUnitDecl * getTranslationUnitDecl() const
Decl - This represents one declaration (or definition), e.g.
This represents one expression.
SourceLocation getExprLoc() const LLVM_READONLY
getExprLoc - Return the preferred location for the arrow when diagnosing a problem with a generic exp...
An expression that sends a message to the given Objective-C object or class.
bool isDelegateInitCall() const
isDelegateInitCall - Answers whether this message send has been tagged as a "delegate init call",...
A class that does preorder or postorder depth-first traversal on the entire Clang AST and visits each...
bool TraverseStmt(Stmt *S, DataRecursionQueue *Queue=nullptr)
Recursively visit a statement or expression, by dispatching to Traverse*() based on the argument's dy...
bool TraverseDecl(Decl *D)
Recursively visit a declaration, by dispatching to Traverse*Decl() based on the argument's dynamic ty...
A trivial tuple used to represent a source range.
SourceLocation getEnd() const
SourceLocation getBegin() const
Stmt - This represents one statement.
SourceRange getSourceRange() const LLVM_READONLY
SourceLocation tokens are not useful in isolation - they are low level value objects created/interpre...
StringRef getNilString(MigrationPass &Pass)
Returns "nil" or "0" if 'nil' macro is not actually defined.
llvm::DenseSet< Expr * > ExprSet
void rewriteUnusedInitDelegate(MigrationPass &pass)
void collectRemovables(Stmt *S, ExprSet &exprs)
The JSON file list parser is used to communicate input to InstallAPI.