25 using namespace clang;
26 using namespace arcmt;
27 using namespace trans;
34 Selector getReturnValueSel, setReturnValueSel;
35 Selector getArgumentSel, setArgumentSel;
46 selIds[0] = &ids.
get(
"getArgument");
47 selIds[1] = &ids.
get(
"atIndex");
49 selIds[0] = &ids.
get(
"setArgument");
62 selName =
"getReturnValue";
64 selName =
"setReturnValue";
66 selName =
"getArgument";
68 selName =
"setArgument";
78 Pass.TA.report(parm->getLocStart(),
79 diag::err_arcmt_nsinvocation_ownership,
80 parm->getSourceRange())
90 Pass.TA.hasDiagnostic(diag::err_unavailable,
91 diag::err_unavailable_message,
95 Pass.TA.clearDiagnostic(diag::err_unavailable,
96 diag::err_unavailable_message,
98 Pass.TA.replace(E->getSourceRange(),
getNilString(Pass));
Defines the clang::ASTContext interface.
StringRef getName() const
getName - Get the name of identifier for this declaration as a StringRef.
Smart pointer class that efficiently represents Objective-C method names.
A (possibly-)qualified type.
Selector getUnarySelector(IdentifierInfo *ID)
One of these records is kept for each identifier that is lexed.
This table allows us to fully hide how we implement multi-keyword caching.
Selector getNullarySelector(IdentifierInfo *ID)
Selector getSelector() const
Expr * IgnoreParenCasts() LLVM_READONLY
IgnoreParenCasts - Ignore parentheses and casts.
A class that does preordor or postorder depth-first traversal on the entire Clang AST and visits each...
This object can be modified without requiring retains or releases.
StringRef getNilString(MigrationPass &Pass)
Returns "nil" or "0" if 'nil' macro is not actually defined.
bool isInstanceMessage() const
Determine whether this is an instance message to either a computed object or to super.
Qualifiers::ObjCLifetime getObjCLifetime() const
Returns lifetime attribute of this type.
QualType getPointeeType() const
If this is a pointer, ObjC object pointer, or block pointer, this returns the respective pointee...
Expr - This represents one expression.
Implements an efficient mapping from strings to IdentifierInfo nodes.
TranslationUnitDecl * getTranslationUnitDecl() const
ObjCInterfaceDecl * getReceiverInterface() const
Retrieve the Objective-C interface to which this message is being directed, if known.
void checkAPIUses(MigrationPass &pass)
An expression that sends a message to the given Objective-C object or class.
Expr * getArg(unsigned Arg)
getArg - Return the specified argument.
IdentifierInfo & get(StringRef Name)
Return the identifier token info for the specified named identifier.
Expr * getInstanceReceiver()
Returns the object expression (receiver) for an instance message, or null for a message that is not a...
SourceLocation getSelectorLoc(unsigned Index) const
detail::InMemoryDirectory::const_iterator E
Selector getSelector(unsigned NumArgs, IdentifierInfo **IIV)
Can create any sort of selector.
bool isNull() const
Return true if this QualType doesn't point to a type yet.