Home
last modified time | relevance | path

Searched refs:ObjCMessageExpr (Results 1 – 25 of 79) sorted by relevance

1234

/external/clang/lib/AST/
DExprObjC.cpp134 ObjCMessageExpr::ObjCMessageExpr(QualType T, ExprValueKind VK, in ObjCMessageExpr() function in ObjCMessageExpr
156 ObjCMessageExpr::ObjCMessageExpr(QualType T, ExprValueKind VK, in ObjCMessageExpr() function in ObjCMessageExpr
174 ObjCMessageExpr::ObjCMessageExpr(QualType T, ExprValueKind VK, in ObjCMessageExpr() function in ObjCMessageExpr
192 void ObjCMessageExpr::initArgsAndSelLocs(ArrayRef<Expr *> Args, in initArgsAndSelLocs()
217 ObjCMessageExpr *
218 ObjCMessageExpr::Create(const ASTContext &Context, QualType T, ExprValueKind VK, in Create()
226 ObjCMessageExpr *Mem; in Create()
232 return new (Mem) ObjCMessageExpr(T, VK, LBracLoc, SuperLoc, IsInstanceSuper, in Create()
237 ObjCMessageExpr *
238 ObjCMessageExpr::Create(const ASTContext &Context, QualType T, ExprValueKind VK, in Create()
[all …]
/external/clang/test/Index/
Dfile-refs.m59 // CHECK-NEXT: ObjCMessageExpr=setWithInt:andFloat::4:6 =[14:8 - 14:18]
60 // CHECK-NEXT: ObjCMessageExpr=setWithInt:andFloat::4:6 =[15:8 - 15:18]
63 // CHECK-NEXT: ObjCMessageExpr=setWithInt:andFloat::4:6
66 // CHECK-NEXT: ObjCMessageExpr=setWithInt:andFloat::4:6 =[14:21 - 14:29]
67 // CHECK-NEXT: ObjCMessageExpr=setWithInt:andFloat::4:6 =[15:22 - 15:30]
76 // CHECK-NEXT: ObjCMessageExpr=protMeth:19:8
80 // CHECK-NEXT: ObjCMessageExpr=protMeth:29:8 =[37:6 - 37:14]
81 // CHECK-NEXT: ObjCMessageExpr=protMeth:19:8 =[38:6 - 38:14]
88 // CHECK-NEXT: ObjCMessageExpr=protMeth:29:8 =[37:6 - 37:14]
89 // CHECK-NEXT: ObjCMessageExpr=protMeth:19:8 =[38:6 - 38:14]
Dc-index-getCursor-test.m121 // CHECK: [46:9 - 46:10] ObjCMessageExpr=foo:7:3
123 // CHECK: [46:13 - 46:18] ObjCMessageExpr=foo:7:3
130 // CHECK: [47:16 - 47:17] ObjCMessageExpr=fooC:8:3
132 // CHECK: [47:20 - 47:26] ObjCMessageExpr=fooC:8:3
145 // CHECK: [50:2 - 50:3] ObjCMessageExpr=pMethod:24:3
147 // CHECK: [50:4 - 50:13] ObjCMessageExpr=pMethod:24:3
149 // CHECK: [51:2 - 51:3] ObjCMessageExpr=catMethodWithFloat::19:9
151 // CHECK: [51:6 - 51:26] ObjCMessageExpr=catMethodWithFloat::19:9
152 // CHECK: [51:26 - 51:27] ObjCMessageExpr=floatMethod:20:1
154 // CHECK: [51:30 - 51:43] ObjCMessageExpr=floatMethod:20:1
[all …]
Dget-cursor-macro-args.m21 // CHECK-NEXT: ObjCMessageExpr=meth:2:8
22 // CHECK-NEXT: ObjCMessageExpr=meth:2:8
23 // CHECK-NEXT: ObjCMessageExpr=meth:2:8
24 // CHECK-NEXT: ObjCMessageExpr=meth:2:8
Dannotate-macro-args.m12 // CHECK1: Punctuation: "[" [9:9 - 9:10] ObjCMessageExpr=meth:2:8
14 // CHECK1: Identifier: "meth" [9:18 - 9:22] ObjCMessageExpr=meth:2:8
15 // CHECK1: Punctuation: "]" [9:22 - 9:23] ObjCMessageExpr=meth:2:8
20 // CHECK2: Identifier: "meth" [15:10 - 15:14] ObjCMessageExpr=meth:2:8
Dcursor-dynamic-call.mm66 // CHECK: 25:3 ObjCMessageExpr=meth:14:8 {{.*}} Dynamic-call Receiver-type=ObjCObjectPointer
71 // CHECK: 35:3 ObjCMessageExpr=meth:14:8 {{.*}} Dynamic-call Receiver-type=ObjCObjectPointer
74 // CHECK: 37:3 ObjCMessageExpr=ClsMeth:15:8 {{.*}} Dynamic-call Receiver-type=ObjCClass
Dannotate-tokens.m295 // CHECK: Punctuation: "[" [41:5 - 41:6] ObjCMessageExpr=foo::34:9
297 // CHECK: Identifier: "foo" [41:11 - 41:14] ObjCMessageExpr=foo::34:9
298 // CHECK: Punctuation: ":" [41:14 - 41:15] ObjCMessageExpr=foo::34:9
300 // CHECK: Punctuation: "]" [41:16 - 41:17] ObjCMessageExpr=foo::34:9
405 // CHECK: Punctuation: "[" [76:17 - 76:18] ObjCMessageExpr=foo::66:9
407 // CHECK: Identifier: "foo" [76:23 - 76:26] ObjCMessageExpr=foo::66:9
408 // CHECK: Punctuation: ":" [76:26 - 76:27] ObjCMessageExpr=foo::66:9
410 // CHECK: Punctuation: "]" [76:30 - 76:31] ObjCMessageExpr=foo::66:9
415 // CHECK: Punctuation: "[" [77:18 - 77:19] ObjCMessageExpr=foo::66:9
417 // CHECK: Identifier: "foo" [77:24 - 77:27] ObjCMessageExpr=foo::66:9
[all …]
Dc-index-api-loadTU-test.m119 // CHECK: c-index-api-loadTU-test.m:48:9: ObjCMessageExpr=foo:9:3 Extent=[48:9 - 48:18]
127 // CHECK: c-index-api-loadTU-test.m:49:16: ObjCMessageExpr=fooC:10:3 Extent=[49:16 - 49:26]
138 // CHECK: c-index-api-loadTU-test.m:52:2: ObjCMessageExpr=pMethod:26:3 Extent=[52:2 - 52:13]
141 // CHECK: c-index-api-loadTU-test.m:53:2: ObjCMessageExpr=catMethodWithFloat::21:9 Extent=[53:2 - 5…
144 // CHECK: c-index-api-loadTU-test.m:53:26: ObjCMessageExpr=floatMethod:22:11 Extent=[53:26 - 53:43]
/external/clang/lib/Edit/
DRewriteObjCFoundationAPI.cpp26 static bool checkForLiteralCreation(const ObjCMessageExpr *Msg, in checkForLiteralCreation()
37 if (Msg->getReceiverKind() == ObjCMessageExpr::Class) in checkForLiteralCreation()
43 if (Msg->getReceiverKind() == ObjCMessageExpr::Instance) { in checkForLiteralCreation()
44 if (const ObjCMessageExpr *Rec = dyn_cast<ObjCMessageExpr>( in checkForLiteralCreation()
59 bool edit::rewriteObjCRedundantCallWithLiteral(const ObjCMessageExpr *Msg, in rewriteObjCRedundantCallWithLiteral()
118 const ObjCMessageExpr * in maybeAdjustInterfaceForSubscriptingCheck()
119 InnerMsg = dyn_cast<ObjCMessageExpr>(Receiver->IgnoreParenCasts()); in maybeAdjustInterfaceForSubscriptingCheck()
125 case ObjCMessageExpr::Instance: in maybeAdjustInterfaceForSubscriptingCheck()
126 case ObjCMessageExpr::SuperInstance: in maybeAdjustInterfaceForSubscriptingCheck()
129 case ObjCMessageExpr::Class: in maybeAdjustInterfaceForSubscriptingCheck()
[all …]
/external/clang/lib/ARCMigrate/
DTransAutoreleasePool.cpp45 SmallVectorImpl<ObjCMessageExpr *> &Releases;
48 ReleaseCollector(Decl *D, SmallVectorImpl<ObjCMessageExpr *> &releases) in ReleaseCollector()
51 bool VisitObjCMessageExpr(ObjCMessageExpr *E) { in VisitObjCMessageExpr()
154 for (SmallVectorImpl<ObjCMessageExpr *>::iterator in ~AutoreleasePoolRewriter()
231 SmallVector<ObjCMessageExpr *, 4> Releases;
353 ObjCMessageExpr *ME = dyn_cast<ObjCMessageExpr>(E); in isPoolCreation()
356 ME->getReceiverKind() == ObjCMessageExpr::Class && in isPoolCreation()
359 if (ME->getReceiverKind() == ObjCMessageExpr::Instance && in isPoolCreation()
362 if (ObjCMessageExpr *recME = dyn_cast_or_null<ObjCMessageExpr>(rec)) { in isPoolCreation()
364 recME->getReceiverKind() == ObjCMessageExpr::Class && in isPoolCreation()
[all …]
DTransRetainReleaseDealloc.cpp61 bool VisitObjCMessageExpr(ObjCMessageExpr *E) { in VisitObjCMessageExpr()
83 if (E->getReceiverKind() == ObjCMessageExpr::Instance) in VisitObjCMessageExpr()
119 case ObjCMessageExpr::SuperInstance: { in VisitObjCMessageExpr()
127 case ObjCMessageExpr::Instance: in VisitObjCMessageExpr()
137 ObjCMessageExpr *Msg = E; in VisitObjCMessageExpr()
173 bool isCommonUnusedAutorelease(ObjCMessageExpr *E) { in isCommonUnusedAutorelease()
178 bool isReturnedAfterAutorelease(ObjCMessageExpr *E) { in isReturnedAfterAutorelease()
199 bool isPlusOneAssignBeforeOrAfterAutorelease(ObjCMessageExpr *E) { in isPlusOneAssignBeforeOrAfterAutorelease()
290 if (ObjCMessageExpr *ME = dyn_cast<ObjCMessageExpr>(E)) { in getReferencedDecl()
321 void checkForGCDOrXPC(ObjCMessageExpr *Msg, Expr *&RecContainer, in checkForGCDOrXPC()
[all …]
DTransforms.cpp85 if (const ObjCMessageExpr * in isPlusOne()
86 ME = dyn_cast<ObjCMessageExpr>(E->IgnoreParenCasts())) in isPlusOne()
178 ObjCMessageExpr *ME = dyn_cast<ObjCMessageExpr>(E); in hasSideEffects()
187 case ObjCMessageExpr::SuperInstance: in hasSideEffects()
189 case ObjCMessageExpr::Instance: in hasSideEffects()
DTransZeroOutPropsInDealloc.cpp43 bool VisitObjCMessageExpr(ObjCMessageExpr *ME) { in VisitObjCMessageExpr()
47 if (ME->getReceiverKind() != ObjCMessageExpr::Instance) in VisitObjCMessageExpr()
/external/clang/include/clang/Edit/
DRewriters.h15 class ObjCMessageExpr; variable
27 bool rewriteObjCRedundantCallWithLiteral(const ObjCMessageExpr *Msg,
30 bool rewriteToObjCLiteralSyntax(const ObjCMessageExpr *Msg,
34 bool rewriteToObjCSubscriptSyntax(const ObjCMessageExpr *Msg,
/external/clang/include/clang/Analysis/DomainSpecific/
DObjCNoReturn.h23 class ObjCMessageExpr; variable
42 bool isImplicitNoReturn(const ObjCMessageExpr *ME);
/external/clang/lib/StaticAnalyzer/Checkers/
DCheckObjCDealloc.cpp38 if (ObjCMessageExpr *ME = dyn_cast<ObjCMessageExpr>(S)) in scan_ivar_release()
47 if (ObjCMessageExpr *ME = dyn_cast<ObjCMessageExpr>(S)) in scan_ivar_release()
DDynamicTypePropagation.cpp58 const ObjCObjectType *getObjectTypeForAllocAndNew(const ObjCMessageExpr *MsgE,
225 const ObjCMessageExpr *MsgE = Msg->getOriginExpr(); in checkPostCall()
309 DynamicTypePropagation::getObjectTypeForAllocAndNew(const ObjCMessageExpr *MsgE, in getObjectTypeForAllocAndNew()
311 if (MsgE->getReceiverKind() == ObjCMessageExpr::Class) { in getObjectTypeForAllocAndNew()
317 if (MsgE->getReceiverKind() == ObjCMessageExpr::SuperClass) { in getObjectTypeForAllocAndNew()
626 findMethodDecl(const ObjCMessageExpr *MessageExpr, in findMethodDecl()
636 if (MessageExpr->getReceiverKind() == ObjCMessageExpr::Instance || in findMethodDecl()
637 MessageExpr->getReceiverKind() == ObjCMessageExpr::Class) { in findMethodDecl()
697 const ObjCMessageExpr *MessageExpr = M.getOriginExpr(); in checkPreObjCMessage()
762 const ObjCMessageExpr *MessageExpr = M.getOriginExpr(); in checkPostObjCMessage()
[all …]
DIvarInvalidationChecker.cpp143 void checkObjCMessageExpr(const ObjCMessageExpr *ME);
167 void VisitObjCMessageExpr(const ObjCMessageExpr *ME);
609 const ObjCMessageExpr *ME) { in checkObjCMessageExpr()
665 if (const ObjCMessageExpr *MsgExpr = dyn_cast<ObjCMessageExpr>(E)) { in check()
695 const ObjCMessageExpr *ME) { in VisitObjCMessageExpr()
DObjCMissingSuperCallChecker.cpp46 bool VisitObjCMessageExpr(ObjCMessageExpr *E) { in VisitObjCMessageExpr()
48 if (E->getReceiverKind() == ObjCMessageExpr::SuperInstance) in VisitObjCMessageExpr()
/external/clang/include/clang/AST/
DExprObjC.h868 class ObjCMessageExpr : public Expr {
918 ObjCMessageExpr(EmptyShell Empty, unsigned NumArgs)
924 ObjCMessageExpr(QualType T, ExprValueKind VK,
936 ObjCMessageExpr(QualType T, ExprValueKind VK,
946 ObjCMessageExpr(QualType T, ExprValueKind VK,
996 static ObjCMessageExpr *alloc(const ASTContext &C,
1002 static ObjCMessageExpr *alloc(const ASTContext &C,
1044 static ObjCMessageExpr *Create(const ASTContext &Context, QualType T,
1080 static ObjCMessageExpr *Create(const ASTContext &Context, QualType T,
1114 static ObjCMessageExpr *Create(const ASTContext &Context, QualType T,
[all …]
/external/clang/lib/Sema/
DScopeInfo.cpp152 void FunctionScopeInfo::recordUseOfWeak(const ObjCMessageExpr *Msg, in recordUseOfWeak()
197 else if (const ObjCMessageExpr *MsgE = dyn_cast<ObjCMessageExpr>(E)) { in markSafeWeakUse()
/external/clang/lib/StaticAnalyzer/Core/
DCallEvent.cpp256 return isa<CallExpr>(S) || isa<ObjCMessageExpr>(S) in isCallStmt()
695 assert(getOriginExpr()->getReceiverKind() == ObjCMessageExpr::SuperInstance); in getReceiverSVal()
702 if (getOriginExpr()->getReceiverKind() == ObjCMessageExpr::SuperInstance || in isReceiverSelfOrSuper()
703 getOriginExpr()->getReceiverKind() == ObjCMessageExpr::SuperClass) in isReceiverSelfOrSuper()
840 const ObjCMessageExpr *E = getOriginExpr(); in getRuntimeDefinition()
1007 return getObjCMethodCall(cast<ObjCMessageExpr>(CallSite), in getCaller()
/external/clang/include/clang/ASTMatchers/
DASTMatchers.h943 ObjCMessageExpr> objcMessageExpr;
2162 AST_MATCHER_P(ObjCMessageExpr, hasReceiverType, internal::Matcher<QualType>, in AST_MATCHER_P() argument
2176 AST_MATCHER_P(ObjCMessageExpr, hasSelector, std::string, BaseName) { in AST_MATCHER_P() argument
2190 AST_MATCHER_P(ObjCMessageExpr, matchesSelector, std::string, RegExp) { in AST_MATCHER_P() argument
2201 AST_MATCHER(ObjCMessageExpr, hasNullSelector) { in AST_MATCHER() argument
2213 AST_MATCHER(ObjCMessageExpr, hasUnarySelector) { in AST_MATCHER() argument
2229 AST_MATCHER(ObjCMessageExpr, hasKeywordSelector) { in AST_MATCHER() argument
2244 AST_MATCHER_P(ObjCMessageExpr, numSelectorArgs, unsigned, N) { in AST_MATCHER_P() argument
2621 ObjCMessageExpr), in AST_POLYMORPHIC_MATCHER_P() argument
2637 ObjCMessageExpr), in AST_POLYMORPHIC_MATCHER_P2() argument
/external/clang/lib/Frontend/Rewrite/
DRewriteObjC.cpp297 Stmt *RewriteMessageExpr(ObjCMessageExpr *Exp);
358 Stmt *SynthMessageExpr(ObjCMessageExpr *Exp,
1230 ObjCMessageExpr *OldMsg = in RewritePropertyOrImplicitSetter()
1231 cast<ObjCMessageExpr>(PseudoOp->getSemanticExpr( in RewritePropertyOrImplicitSetter()
1242 if (OldMsg->getReceiverKind() == ObjCMessageExpr::Instance) { in RewritePropertyOrImplicitSetter()
1258 ObjCMessageExpr *NewMsg = nullptr; in RewritePropertyOrImplicitSetter()
1260 case ObjCMessageExpr::Class: in RewritePropertyOrImplicitSetter()
1261 NewMsg = ObjCMessageExpr::Create(*Context, OldMsg->getType(), in RewritePropertyOrImplicitSetter()
1273 case ObjCMessageExpr::Instance: in RewritePropertyOrImplicitSetter()
1274 NewMsg = ObjCMessageExpr::Create(*Context, OldMsg->getType(), in RewritePropertyOrImplicitSetter()
[all …]
/external/clang/tools/libclang/
DCXCursor.cpp524 cast<ObjCMessageExpr>(S)->getSelectorLocs(SelLocs); in MakeCXCursor()
965 cast<ObjCMessageExpr>(getCursorExpr(cursor)) in getSelectorIdentifierIndexAndLoc()
983 unsigned(SelIdx) >= cast<ObjCMessageExpr>(getCursorExpr(cursor)) in getSelectorIdentifierCursor()
1457 if (const ObjCMessageExpr *MsgE = dyn_cast<ObjCMessageExpr>(E)) { in clang_Cursor_isDynamicCall()
1458 if (MsgE->getReceiverKind() != ObjCMessageExpr::Instance) in clang_Cursor_isDynamicCall()
1460 if (auto *RecE = dyn_cast<ObjCMessageExpr>( in clang_Cursor_isDynamicCall()
1489 if (const ObjCMessageExpr *MsgE = dyn_cast_or_null<ObjCMessageExpr>(E)) in clang_Cursor_getReceiverType()

1234