Home
last modified time | relevance | path

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

123

/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
Dcursor-dynamic-call.mm53 // CHECK: 25:3 ObjCMessageExpr=meth:14:8 {{.*}} Dynamic-call
57 // CHECK: 35:3 ObjCMessageExpr=meth:14:8 {{.*}} Dynamic-call
59 // CHECK: 37:3 ObjCMessageExpr=ClsMeth:15:8 {{.*}} Dynamic-call
Dannotate-tokens.m283 // CHECK: Punctuation: "[" [41:5 - 41:6] ObjCMessageExpr=foo::34:9
285 // CHECK: Identifier: "foo" [41:11 - 41:14] ObjCMessageExpr=foo::34:9
286 // CHECK: Punctuation: ":" [41:14 - 41:15] ObjCMessageExpr=foo::34:9
288 // CHECK: Punctuation: "]" [41:16 - 41:17] ObjCMessageExpr=foo::34:9
393 // CHECK: Punctuation: "[" [76:17 - 76:18] ObjCMessageExpr=foo::66:9
395 // CHECK: Identifier: "foo" [76:23 - 76:26] ObjCMessageExpr=foo::66:9
396 // CHECK: Punctuation: ":" [76:26 - 76:27] ObjCMessageExpr=foo::66:9
398 // CHECK: Punctuation: "]" [76:30 - 76:31] ObjCMessageExpr=foo::66:9
403 // CHECK: Punctuation: "[" [77:18 - 77:19] ObjCMessageExpr=foo::66:9
405 // CHECK: Identifier: "foo" [77:24 - 77:27] ObjCMessageExpr=foo::66:9
[all …]
Dget-cursor-macro-args.m17 // CHECK-NEXT: ObjCMessageExpr=meth:2:8
18 // CHECK-NEXT: ObjCMessageExpr=meth:2:8
Dc-index-api-loadTU-test.m115 // CHECK: c-index-api-loadTU-test.m:48:9: ObjCMessageExpr=foo:9:3 Extent=[48:9 - 48:18]
121 // CHECK: c-index-api-loadTU-test.m:49:16: ObjCMessageExpr=fooC:10:3 Extent=[49:16 - 49:26]
130 // CHECK: c-index-api-loadTU-test.m:52:2: ObjCMessageExpr=pMethod:26:3 Extent=[52:2 - 52:13]
132 // CHECK: c-index-api-loadTU-test.m:53:2: ObjCMessageExpr=catMethodWithFloat::21:9 Extent=[53:2 - 5…
134 // CHECK: c-index-api-loadTU-test.m:53:26: ObjCMessageExpr=floatMethod:22:11 Extent=[53:26 - 53:43]
Dpch-with-errors.m25 // CHECK-PARSE: pch-with-errors.m:{{.*}} ObjCMessageExpr=meth
/external/clang/lib/Edit/
DRewriteObjCFoundationAPI.cpp25 static bool checkForLiteralCreation(const ObjCMessageExpr *Msg, in checkForLiteralCreation()
36 if (Msg->getReceiverKind() == ObjCMessageExpr::Class) in checkForLiteralCreation()
42 if (Msg->getReceiverKind() == ObjCMessageExpr::Instance) { in checkForLiteralCreation()
43 if (const ObjCMessageExpr *Rec = dyn_cast<ObjCMessageExpr>( in checkForLiteralCreation()
58 bool edit::rewriteObjCRedundantCallWithLiteral(const ObjCMessageExpr *Msg, in rewriteObjCRedundantCallWithLiteral()
117 const ObjCMessageExpr * in maybeAdjustInterfaceForSubscriptingCheck()
118 InnerMsg = dyn_cast<ObjCMessageExpr>(Receiver->IgnoreParenCasts()); in maybeAdjustInterfaceForSubscriptingCheck()
124 case ObjCMessageExpr::Instance: in maybeAdjustInterfaceForSubscriptingCheck()
125 case ObjCMessageExpr::SuperInstance: in maybeAdjustInterfaceForSubscriptingCheck()
128 case ObjCMessageExpr::Class: in maybeAdjustInterfaceForSubscriptingCheck()
[all …]
/external/clang/include/clang/Edit/
DRewriters.h14 class ObjCMessageExpr; variable
20 bool rewriteObjCRedundantCallWithLiteral(const ObjCMessageExpr *Msg,
23 bool rewriteToObjCLiteralSyntax(const ObjCMessageExpr *Msg,
26 bool rewriteToObjCSubscriptSyntax(const ObjCMessageExpr *Msg,
/external/clang/lib/StaticAnalyzer/Checkers/
DCheckObjCDealloc.cpp32 if (ObjCMessageExpr *ME = dyn_cast<ObjCMessageExpr>(S)) in scan_dealloc()
35 case ObjCMessageExpr::Instance: return false; in scan_dealloc()
36 case ObjCMessageExpr::SuperInstance: return true; in scan_dealloc()
37 case ObjCMessageExpr::Class: break; in scan_dealloc()
38 case ObjCMessageExpr::SuperClass: break; in scan_dealloc()
58 if (ObjCMessageExpr *ME = dyn_cast<ObjCMessageExpr>(S)) in scan_ivar_release()
67 if (ObjCMessageExpr *ME = dyn_cast<ObjCMessageExpr>(S)) in scan_ivar_release()
DDynamicTypePropagation.cpp31 const ObjCObjectType *getObjectTypeForAllocAndNew(const ObjCMessageExpr *MsgE,
125 const ObjCMessageExpr *MsgE = Msg->getOriginExpr(); in checkPostCall()
193 DynamicTypePropagation::getObjectTypeForAllocAndNew(const ObjCMessageExpr *MsgE, in getObjectTypeForAllocAndNew()
195 if (MsgE->getReceiverKind() == ObjCMessageExpr::Class) { in getObjectTypeForAllocAndNew()
201 if (MsgE->getReceiverKind() == ObjCMessageExpr::SuperClass) { in getObjectTypeForAllocAndNew()
/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.cpp60 bool VisitObjCMessageExpr(ObjCMessageExpr *E) { in VisitObjCMessageExpr()
82 if (E->getReceiverKind() == ObjCMessageExpr::Instance) in VisitObjCMessageExpr()
118 case ObjCMessageExpr::SuperInstance: { in VisitObjCMessageExpr()
126 case ObjCMessageExpr::Instance: in VisitObjCMessageExpr()
136 ObjCMessageExpr *Msg = E; in VisitObjCMessageExpr()
170 bool isCommonUnusedAutorelease(ObjCMessageExpr *E) { in isCommonUnusedAutorelease()
246 void checkForGCDOrXPC(ObjCMessageExpr *Msg, Expr *&RecContainer, in checkForGCDOrXPC()
325 if (ObjCMessageExpr *ME = dyn_cast<ObjCMessageExpr>(E)) in isDelegateMessage()
DTransforms.cpp73 if (const ObjCMessageExpr * in isPlusOneAssign()
74 ME = dyn_cast<ObjCMessageExpr>(E->getRHS()->IgnoreParenCasts())) in isPlusOneAssign()
163 ObjCMessageExpr *ME = dyn_cast<ObjCMessageExpr>(E); in hasSideEffects()
172 case ObjCMessageExpr::SuperInstance: in hasSideEffects()
174 case ObjCMessageExpr::Instance: in hasSideEffects()
DTransZeroOutPropsInDealloc.cpp43 bool VisitObjCMessageExpr(ObjCMessageExpr *ME) { in VisitObjCMessageExpr()
47 if (ME->getReceiverKind() != ObjCMessageExpr::Instance) in VisitObjCMessageExpr()
DObjCMT.cpp128 bool VisitObjCMessageExpr(ObjCMessageExpr *E) { in VisitObjCMessageExpr()
144 bool TraverseObjCMessageExpr(ObjCMessageExpr *E) { in TraverseObjCMessageExpr()
DTransUnusedInitDelegate.cpp50 bool VisitObjCMessageExpr(ObjCMessageExpr *ME) { in VisitObjCMessageExpr()
DTransAPIUses.cpp55 bool VisitObjCMessageExpr(ObjCMessageExpr *E) { in VisitObjCMessageExpr()
/external/clang/lib/AST/
DExpr.cpp1958 const ObjCMessageExpr *ME = cast<ObjCMessageExpr>(this); in isUnusedResultAWarning()
3118 ObjCMessageExpr::ObjCMessageExpr(QualType T, in ObjCMessageExpr() function in ObjCMessageExpr
3145 ObjCMessageExpr::ObjCMessageExpr(QualType T, in ObjCMessageExpr() function in ObjCMessageExpr
3169 ObjCMessageExpr::ObjCMessageExpr(QualType T, in ObjCMessageExpr() function in ObjCMessageExpr
3194 void ObjCMessageExpr::initArgsAndSelLocs(ArrayRef<Expr *> Args, in initArgsAndSelLocs()
3219 ObjCMessageExpr *ObjCMessageExpr::Create(ASTContext &Context, QualType T, in Create()
3233 ObjCMessageExpr *Mem; in Create()
3239 return new (Mem) ObjCMessageExpr(T, VK, LBracLoc, SuperLoc, IsInstanceSuper, in Create()
3244 ObjCMessageExpr *ObjCMessageExpr::Create(ASTContext &Context, QualType T, in Create()
3256 ObjCMessageExpr *Mem; in Create()
[all …]
DStmtDumper.cpp169 void VisitObjCMessageExpr(ObjCMessageExpr* Node);
611 void StmtDumper::VisitObjCMessageExpr(ObjCMessageExpr* Node) { in VisitObjCMessageExpr()
615 case ObjCMessageExpr::Instance: in VisitObjCMessageExpr()
618 case ObjCMessageExpr::Class: in VisitObjCMessageExpr()
623 case ObjCMessageExpr::SuperInstance: in VisitObjCMessageExpr()
627 case ObjCMessageExpr::SuperClass: in VisitObjCMessageExpr()
/external/clang/include/clang/AST/
DExprObjC.h867 class ObjCMessageExpr : public Expr {
917 ObjCMessageExpr(EmptyShell Empty, unsigned NumArgs) in ObjCMessageExpr() function
923 ObjCMessageExpr(QualType T, ExprValueKind VK,
935 ObjCMessageExpr(QualType T, ExprValueKind VK,
945 ObjCMessageExpr(QualType T, ExprValueKind VK,
995 static ObjCMessageExpr *alloc(ASTContext &C,
1001 static ObjCMessageExpr *alloc(ASTContext &C,
1043 static ObjCMessageExpr *Create(ASTContext &Context, QualType T,
1079 static ObjCMessageExpr *Create(ASTContext &Context, QualType T,
1113 static ObjCMessageExpr *Create(ASTContext &Context, QualType T,
[all …]
/external/clang/lib/StaticAnalyzer/Core/
DCallEvent.cpp250 return isa<CallExpr>(S) || isa<ObjCMessageExpr>(S) in isCallStmt()
624 assert(getOriginExpr()->getReceiverKind() == ObjCMessageExpr::SuperInstance); in getReceiverSVal()
631 if (getOriginExpr()->getReceiverKind() == ObjCMessageExpr::SuperInstance || in isReceiverSelfOrSuper()
632 getOriginExpr()->getReceiverKind() == ObjCMessageExpr::SuperClass) in isReceiverSelfOrSuper()
765 const ObjCMessageExpr *E = getOriginExpr(); in getRuntimeDefinition()
886 return getObjCMethodCall(cast<ObjCMessageExpr>(CallSite), in getCaller()
/external/clang/lib/Rewrite/Frontend/
DRewriteObjC.cpp303 Stmt *RewriteMessageExpr(ObjCMessageExpr *Exp);
364 Stmt *SynthMessageExpr(ObjCMessageExpr *Exp,
1261 ObjCMessageExpr *OldMsg = in RewritePropertyOrImplicitSetter()
1262 cast<ObjCMessageExpr>(PseudoOp->getSemanticExpr( in RewritePropertyOrImplicitSetter()
1273 if (OldMsg->getReceiverKind() == ObjCMessageExpr::Instance) { in RewritePropertyOrImplicitSetter()
1289 ObjCMessageExpr *NewMsg = 0; in RewritePropertyOrImplicitSetter()
1291 case ObjCMessageExpr::Class: in RewritePropertyOrImplicitSetter()
1292 NewMsg = ObjCMessageExpr::Create(*Context, OldMsg->getType(), in RewritePropertyOrImplicitSetter()
1304 case ObjCMessageExpr::Instance: in RewritePropertyOrImplicitSetter()
1305 NewMsg = ObjCMessageExpr::Create(*Context, OldMsg->getType(), in RewritePropertyOrImplicitSetter()
[all …]
/external/clang/lib/Sema/
DSemaExprObjC.cpp1099 const ObjCMessageExpr *MsgSend = dyn_cast<ObjCMessageExpr>(E); in EmitRelatedResultTypeNote()
1327 else if (ObjCMessageExpr *ME = dyn_cast<ObjCMessageExpr>(RExpr)) { in DiagnoseARCUseOfWeakReceiver()
1829 static void applyCocoaAPICheck(Sema &S, const ObjCMessageExpr *Msg, in applyCocoaAPICheck()
1831 bool (*refactor)(const ObjCMessageExpr *, in applyCocoaAPICheck() argument
1868 static void checkCocoaAPI(Sema &S, const ObjCMessageExpr *Msg) { in checkCocoaAPI()
1925 return Owned(ObjCMessageExpr::Create(Context, ReceiverType, in BuildClassMessage()
1990 ObjCMessageExpr *Result; in BuildClassMessage()
1992 Result = ObjCMessageExpr::Create(Context, ReturnType, VK, LBracLoc, in BuildClassMessage()
1998 Result = ObjCMessageExpr::Create(Context, ReturnType, VK, LBracLoc, in BuildClassMessage()
2110 return Owned(ObjCMessageExpr::Create(Context, Context.DependentTy, in BuildInstanceMessage()
[all …]

123