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");
56 if (
E->isInstanceMessage() &&
57 E->getReceiverInterface() &&
58 E->getReceiverInterface()->getName() ==
"NSInvocation") {
60 if (
E->getSelector() == getReturnValueSel)
61 selName =
"getReturnValue";
62 else if (
E->getSelector() == setReturnValueSel)
63 selName =
"setReturnValue";
64 else if (
E->getSelector() == getArgumentSel)
65 selName =
"getArgument";
66 else if (
E->getSelector() == setArgumentSel)
67 selName =
"setArgument";
78 diag::err_arcmt_nsinvocation_ownership,
86 if (
E->isInstanceMessage() &&
87 E->getInstanceReceiver() &&
88 E->getSelector() == zoneSel &&
90 diag::err_unavailable_message,
91 E->getSelectorLoc(0))) {
95 diag::err_unavailable_message,
96 E->getSelectorLoc(0));
Defines the clang::ASTContext interface.
TranslationUnitDecl * getTranslationUnitDecl() const
SelectorTable & Selectors
This represents one expression.
Expr * IgnoreParenCasts() LLVM_READONLY
Skip past any parentheses and casts which might surround this expression until reaching a fixed point...
One of these records is kept for each identifier that is lexed.
Implements an efficient mapping from strings to IdentifierInfo nodes.
IdentifierInfo & get(StringRef Name)
Return the identifier token info for the specified named identifier.
An expression that sends a message to the given Objective-C object or class.
A (possibly-)qualified type.
bool isNull() const
Return true if this QualType doesn't point to a type yet.
Qualifiers::ObjCLifetime getObjCLifetime() const
Returns lifetime attribute of this type.
@ OCL_ExplicitNone
This object can be modified without requiring retains or releases.
A class that does preorder or postorder depth-first traversal on the entire Clang AST and visits each...
This table allows us to fully hide how we implement multi-keyword caching.
Selector getNullarySelector(const IdentifierInfo *ID)
Selector getSelector(unsigned NumArgs, const IdentifierInfo **IIV)
Can create any sort of selector.
Selector getUnarySelector(const IdentifierInfo *ID)
Smart pointer class that efficiently represents Objective-C method names.
SourceRange getSourceRange() const LLVM_READONLY
SourceLocation tokens are not useful in isolation - they are low level value objects created/interpre...
SourceLocation getBeginLoc() const LLVM_READONLY
QualType getPointeeType() const
If this is a pointer, ObjC object pointer, or block pointer, this returns the respective pointee.
StringRef getNilString(MigrationPass &Pass)
Returns "nil" or "0" if 'nil' macro is not actually defined.
void checkAPIUses(MigrationPass &pass)
The JSON file list parser is used to communicate input to InstallAPI.