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";
79 diag::err_arcmt_nsinvocation_ownership,
91 diag::err_unavailable_message,
96 diag::err_unavailable_message,
Defines the clang::ASTContext interface.
Smart pointer class that efficiently represents Objective-C method names.
A (possibly-)qualified type.
Selector getSelector() const
QualType getPointeeType() const
If this is a pointer, ObjC object pointer, or block pointer, this returns the respective pointee...
ObjCInterfaceDecl * getReceiverInterface() const
Retrieve the Objective-C interface to which this message is being directed, if known.
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.
SourceLocation getBeginLoc() const LLVM_READONLY
Selector getNullarySelector(IdentifierInfo *ID)
Expr * IgnoreParenCasts() LLVM_READONLY
IgnoreParenCasts - Ignore parentheses and casts.
A class that does preorder 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.
This represents one expression.
Implements an efficient mapping from strings to IdentifierInfo nodes.
void checkAPIUses(MigrationPass &pass)
An expression that sends a message to the given Objective-C object or class.
bool isNull() const
Return true if this QualType doesn't point to a type yet.
Expr * getArg(unsigned Arg)
getArg - Return the specified argument.
SelectorTable & Selectors
IdentifierInfo & get(StringRef Name)
Return the identifier token info for the specified named identifier.
SourceLocation getSelectorLoc(unsigned Index) const
Expr * getInstanceReceiver()
Returns the object expression (receiver) for an instance message, or null for a message that is not a...
Dataflow Directional Tag Classes.
Selector getSelector(unsigned NumArgs, IdentifierInfo **IIV)
Can create any sort of selector.
TranslationUnitDecl * getTranslationUnitDecl() const
SourceRange getSourceRange() const LLVM_READONLY
SourceLocation tokens are not useful in isolation - they are low level value objects created/interpre...
StringRef getName() const
Get the name of identifier for this declaration as a StringRef.
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.