24 using namespace clang;
25 using namespace arcmt;
26 using namespace trans;
33 Selector getReturnValueSel, setReturnValueSel;
34 Selector getArgumentSel, setArgumentSel;
45 selIds[0] = &ids.
get(
"getArgument");
46 selIds[1] = &ids.
get(
"atIndex");
48 selIds[0] = &ids.
get(
"setArgument");
61 selName =
"getReturnValue";
63 selName =
"setReturnValue";
65 selName =
"getArgument";
67 selName =
"setArgument";
78 diag::err_arcmt_nsinvocation_ownership,
90 diag::err_unavailable_message,
95 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
Skip past any parentheses and casts which might surround this expression until reaching a fixed point...
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.