Home
last modified time | relevance | path

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

1234

/external/clang/lib/AST/
DExprObjC.cpp117 ObjCMessageExpr::ObjCMessageExpr(QualType T, ExprValueKind VK, in ObjCMessageExpr() function in ObjCMessageExpr
139 ObjCMessageExpr::ObjCMessageExpr(QualType T, ExprValueKind VK, in ObjCMessageExpr() function in ObjCMessageExpr
157 ObjCMessageExpr::ObjCMessageExpr(QualType T, ExprValueKind VK, in ObjCMessageExpr() function in ObjCMessageExpr
175 void ObjCMessageExpr::initArgsAndSelLocs(ArrayRef<Expr *> Args, in initArgsAndSelLocs()
200 ObjCMessageExpr *
201 ObjCMessageExpr::Create(const ASTContext &Context, QualType T, ExprValueKind VK, in Create()
209 ObjCMessageExpr *Mem; in Create()
215 return new (Mem) ObjCMessageExpr(T, VK, LBracLoc, SuperLoc, IsInstanceSuper, in Create()
220 ObjCMessageExpr *
221 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 …]
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
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
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.m120 // CHECK: c-index-api-loadTU-test.m:48:9: ObjCMessageExpr=foo:9:3 Extent=[48:9 - 48:18]
128 // CHECK: c-index-api-loadTU-test.m:49:16: ObjCMessageExpr=fooC:10:3 Extent=[49:16 - 49:26]
139 // CHECK: c-index-api-loadTU-test.m:52:2: ObjCMessageExpr=pMethod:26:3 Extent=[52:2 - 52:13]
142 // CHECK: c-index-api-loadTU-test.m:53:2: ObjCMessageExpr=catMethodWithFloat::21:9 Extent=[53:2 - 5…
145 // 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/
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()
651 findMethodDecl(const ObjCMessageExpr *MessageExpr, in findMethodDecl()
661 if (MessageExpr->getReceiverKind() == ObjCMessageExpr::Instance || in findMethodDecl()
662 MessageExpr->getReceiverKind() == ObjCMessageExpr::Class) { in findMethodDecl()
722 const ObjCMessageExpr *MessageExpr = M.getOriginExpr(); in checkPreObjCMessage()
787 const ObjCMessageExpr *MessageExpr = M.getOriginExpr(); in checkPostObjCMessage()
[all …]
DIvarInvalidationChecker.cpp140 void checkObjCMessageExpr(const ObjCMessageExpr *ME);
164 void VisitObjCMessageExpr(const ObjCMessageExpr *ME);
606 const ObjCMessageExpr *ME) { in checkObjCMessageExpr()
662 if (const ObjCMessageExpr *MsgExpr = dyn_cast<ObjCMessageExpr>(E)) { in check()
692 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.h860 class ObjCMessageExpr final
862 private llvm::TrailingObjects<ObjCMessageExpr, void *, SourceLocation> {
914 ObjCMessageExpr(EmptyShell Empty, unsigned NumArgs)
920 ObjCMessageExpr(QualType T, ExprValueKind VK,
932 ObjCMessageExpr(QualType T, ExprValueKind VK,
942 ObjCMessageExpr(QualType T, ExprValueKind VK,
989 static ObjCMessageExpr *alloc(const ASTContext &C,
995 static ObjCMessageExpr *alloc(const ASTContext &C,
1037 static ObjCMessageExpr *Create(const ASTContext &Context, QualType T,
1073 static ObjCMessageExpr *Create(const ASTContext &Context, QualType T,
[all …]
/external/clang/lib/Sema/
DScopeInfo.cpp155 void FunctionScopeInfo::recordUseOfWeak(const ObjCMessageExpr *Msg, in recordUseOfWeak()
200 else if (const ObjCMessageExpr *MsgE = dyn_cast<ObjCMessageExpr>(E)) { in markSafeWeakUse()
/external/clang/lib/Index/
DIndexBody.cpp165 bool VisitObjCMessageExpr(ObjCMessageExpr *E) { in VisitObjCMessageExpr()
166 auto isDynamic = [](const ObjCMessageExpr *MsgE)->bool { in VisitObjCMessageExpr()
167 if (MsgE->getReceiverKind() != ObjCMessageExpr::Instance) in VisitObjCMessageExpr()
169 if (auto *RecE = dyn_cast<ObjCMessageExpr>( in VisitObjCMessageExpr()
/external/clang/lib/Frontend/Rewrite/
DRewriteObjC.cpp298 Stmt *RewriteMessageExpr(ObjCMessageExpr *Exp);
359 Stmt *SynthMessageExpr(ObjCMessageExpr *Exp,
1231 ObjCMessageExpr *OldMsg = in RewritePropertyOrImplicitSetter()
1232 cast<ObjCMessageExpr>(PseudoOp->getSemanticExpr( in RewritePropertyOrImplicitSetter()
1243 if (OldMsg->getReceiverKind() == ObjCMessageExpr::Instance) { in RewritePropertyOrImplicitSetter()
1259 ObjCMessageExpr *NewMsg = nullptr; in RewritePropertyOrImplicitSetter()
1261 case ObjCMessageExpr::Class: in RewritePropertyOrImplicitSetter()
1262 NewMsg = ObjCMessageExpr::Create(*Context, OldMsg->getType(), in RewritePropertyOrImplicitSetter()
1274 case ObjCMessageExpr::Instance: in RewritePropertyOrImplicitSetter()
1275 NewMsg = ObjCMessageExpr::Create(*Context, OldMsg->getType(), in RewritePropertyOrImplicitSetter()
[all …]
/external/clang/tools/libclang/
DCXCursor.cpp525 cast<ObjCMessageExpr>(S)->getSelectorLocs(SelLocs); in MakeCXCursor()
993 cast<ObjCMessageExpr>(getCursorExpr(cursor)) in getSelectorIdentifierIndexAndLoc()
1011 unsigned(SelIdx) >= cast<ObjCMessageExpr>(getCursorExpr(cursor)) in getSelectorIdentifierCursor()
1485 if (const ObjCMessageExpr *MsgE = dyn_cast<ObjCMessageExpr>(E)) { in clang_Cursor_isDynamicCall()
1486 if (MsgE->getReceiverKind() != ObjCMessageExpr::Instance) in clang_Cursor_isDynamicCall()
1488 if (auto *RecE = dyn_cast<ObjCMessageExpr>( in clang_Cursor_isDynamicCall()
1517 if (const ObjCMessageExpr *MsgE = dyn_cast_or_null<ObjCMessageExpr>(E)) in clang_Cursor_getReceiverType()
/external/clang/lib/StaticAnalyzer/Core/
DCallEvent.cpp266 return isa<CallExpr>(S) || isa<ObjCMessageExpr>(S) in isCallStmt()
722 assert(getOriginExpr()->getReceiverKind() == ObjCMessageExpr::SuperInstance); in getReceiverSVal()
729 if (getOriginExpr()->getReceiverKind() == ObjCMessageExpr::SuperInstance || in isReceiverSelfOrSuper()
730 getOriginExpr()->getReceiverKind() == ObjCMessageExpr::SuperClass) in isReceiverSelfOrSuper()
895 const ObjCMessageExpr *E = getOriginExpr(); in getRuntimeDefinition()
1084 return getObjCMethodCall(cast<ObjCMessageExpr>(CallSite), in getCaller()
/external/clang/lib/Analysis/
DObjCNoReturn.cpp49 bool ObjCNoReturn::isImplicitNoReturn(const ObjCMessageExpr *ME) { in isImplicitNoReturn()

1234