Home
last modified time | relevance | path

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

1234

/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.mm53 // CHECK: 25:3 ObjCMessageExpr=meth:14:8 {{.*}} Dynamic-call Receiver-type=ObjCObjectPointer
58 // CHECK: 35:3 ObjCMessageExpr=meth:14:8 {{.*}} Dynamic-call Receiver-type=ObjCObjectPointer
61 // CHECK: 37:3 ObjCMessageExpr=ClsMeth:15:8 {{.*}} Dynamic-call Receiver-type=ObjCClass
Dannotate-tokens.m294 // CHECK: Punctuation: "[" [41:5 - 41:6] ObjCMessageExpr=foo::34:9
296 // CHECK: Identifier: "foo" [41:11 - 41:14] ObjCMessageExpr=foo::34:9
297 // CHECK: Punctuation: ":" [41:14 - 41:15] ObjCMessageExpr=foo::34:9
299 // CHECK: Punctuation: "]" [41:16 - 41:17] ObjCMessageExpr=foo::34:9
404 // CHECK: Punctuation: "[" [76:17 - 76:18] ObjCMessageExpr=foo::66:9
406 // CHECK: Identifier: "foo" [76:23 - 76:26] ObjCMessageExpr=foo::66:9
407 // CHECK: Punctuation: ":" [76:26 - 76:27] ObjCMessageExpr=foo::66:9
409 // CHECK: Punctuation: "]" [76:30 - 76:31] ObjCMessageExpr=foo::66:9
414 // CHECK: Punctuation: "[" [77:18 - 77:19] ObjCMessageExpr=foo::66:9
416 // 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/StaticAnalyzer/Checkers/
DCheckObjCDealloc.cpp33 if (ObjCMessageExpr *ME = dyn_cast<ObjCMessageExpr>(S)) in scan_dealloc()
36 case ObjCMessageExpr::Instance: return false; in scan_dealloc()
37 case ObjCMessageExpr::SuperInstance: return true; in scan_dealloc()
38 case ObjCMessageExpr::Class: break; in scan_dealloc()
39 case ObjCMessageExpr::SuperClass: break; in scan_dealloc()
59 if (ObjCMessageExpr *ME = dyn_cast<ObjCMessageExpr>(S)) in scan_ivar_release()
68 if (ObjCMessageExpr *ME = dyn_cast<ObjCMessageExpr>(S)) in scan_ivar_release()
DDynamicTypePropagation.cpp32 const ObjCObjectType *getObjectTypeForAllocAndNew(const ObjCMessageExpr *MsgE,
128 const ObjCMessageExpr *MsgE = Msg->getOriginExpr(); in checkPostCall()
210 DynamicTypePropagation::getObjectTypeForAllocAndNew(const ObjCMessageExpr *MsgE, in getObjectTypeForAllocAndNew()
212 if (MsgE->getReceiverKind() == ObjCMessageExpr::Class) { in getObjectTypeForAllocAndNew()
218 if (MsgE->getReceiverKind() == ObjCMessageExpr::SuperClass) { in getObjectTypeForAllocAndNew()
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.cpp47 bool VisitObjCMessageExpr(ObjCMessageExpr *E) { in VisitObjCMessageExpr()
49 if (E->getReceiverKind() == ObjCMessageExpr::SuperInstance) 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/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()
176 bool isCommonUnusedAutorelease(ObjCMessageExpr *E) { in isCommonUnusedAutorelease()
184 bool isReturnedAfterAutorelease(ObjCMessageExpr *E) { in isReturnedAfterAutorelease()
205 bool isPlusOneAssignBeforeOrAfterAutorelease(ObjCMessageExpr *E) { in isPlusOneAssignBeforeOrAfterAutorelease()
300 if (ObjCMessageExpr *ME = dyn_cast<ObjCMessageExpr>(E)) { in getReferencedDecl()
331 void checkForGCDOrXPC(ObjCMessageExpr *Msg, Expr *&RecContainer, in checkForGCDOrXPC()
[all …]
DTransforms.cpp83 if (const ObjCMessageExpr * in isPlusOne()
84 ME = dyn_cast<ObjCMessageExpr>(E->IgnoreParenCasts())) in isPlusOne()
179 ObjCMessageExpr *ME = dyn_cast<ObjCMessageExpr>(E); in hasSideEffects()
188 case ObjCMessageExpr::SuperInstance: in hasSideEffects()
190 case ObjCMessageExpr::Instance: in hasSideEffects()
DTransZeroOutPropsInDealloc.cpp43 bool VisitObjCMessageExpr(ObjCMessageExpr *ME) { in VisitObjCMessageExpr()
47 if (ME->getReceiverKind() != ObjCMessageExpr::Instance) in VisitObjCMessageExpr()
DTransUnusedInitDelegate.cpp50 bool VisitObjCMessageExpr(ObjCMessageExpr *ME) { in VisitObjCMessageExpr()
/external/clang/include/clang/Analysis/DomainSpecific/
DObjCNoReturn.h23 class ObjCMessageExpr; variable
42 bool isImplicitNoReturn(const ObjCMessageExpr *ME);
/external/clang/lib/AST/
DExpr.cpp2153 const ObjCMessageExpr *ME = cast<ObjCMessageExpr>(this); in isUnusedResultAWarning()
3365 ObjCMessageExpr::ObjCMessageExpr(QualType T, in ObjCMessageExpr() function in ObjCMessageExpr
3393 ObjCMessageExpr::ObjCMessageExpr(QualType T, in ObjCMessageExpr() function in ObjCMessageExpr
3417 ObjCMessageExpr::ObjCMessageExpr(QualType T, in ObjCMessageExpr() function in ObjCMessageExpr
3442 void ObjCMessageExpr::initArgsAndSelLocs(ArrayRef<Expr *> Args, in initArgsAndSelLocs()
3467 ObjCMessageExpr *ObjCMessageExpr::Create(const ASTContext &Context, QualType T, in Create()
3481 ObjCMessageExpr *Mem; in Create()
3487 return new (Mem) ObjCMessageExpr(T, VK, LBracLoc, SuperLoc, IsInstanceSuper, in Create()
3492 ObjCMessageExpr *ObjCMessageExpr::Create(const ASTContext &Context, QualType T, in Create()
3504 ObjCMessageExpr *Mem; in Create()
[all …]
/external/clang/lib/Sema/
DScopeInfo.cpp130 void FunctionScopeInfo::recordUseOfWeak(const ObjCMessageExpr *Msg, in recordUseOfWeak()
173 else if (const ObjCMessageExpr *MsgE = dyn_cast<ObjCMessageExpr>(E)) { in markSafeWeakUse()
/external/clang/include/clang/AST/
DExprObjC.h879 class ObjCMessageExpr : public Expr {
929 ObjCMessageExpr(EmptyShell Empty, unsigned NumArgs)
935 ObjCMessageExpr(QualType T, ExprValueKind VK,
947 ObjCMessageExpr(QualType T, ExprValueKind VK,
957 ObjCMessageExpr(QualType T, ExprValueKind VK,
1007 static ObjCMessageExpr *alloc(const ASTContext &C,
1013 static ObjCMessageExpr *alloc(const ASTContext &C,
1055 static ObjCMessageExpr *Create(const ASTContext &Context, QualType T,
1091 static ObjCMessageExpr *Create(const ASTContext &Context, QualType T,
1125 static ObjCMessageExpr *Create(const ASTContext &Context, QualType T,
[all …]
/external/clang/tools/libclang/
DCXCursor.cpp507 cast<ObjCMessageExpr>(S)->getSelectorLocs(SelLocs); in MakeCXCursor()
887 cast<ObjCMessageExpr>(getCursorExpr(cursor)) in getSelectorIdentifierIndexAndLoc()
905 unsigned(SelIdx) >= cast<ObjCMessageExpr>(getCursorExpr(cursor)) in getSelectorIdentifierCursor()
1244 if (const ObjCMessageExpr *MsgE = dyn_cast<ObjCMessageExpr>(E)) in clang_Cursor_isDynamicCall()
1245 return MsgE->getReceiverKind() == ObjCMessageExpr::Instance; in clang_Cursor_isDynamicCall()
1268 if (const ObjCMessageExpr *MsgE = dyn_cast_or_null<ObjCMessageExpr>(E)) in clang_Cursor_getReceiverType()
/external/clang/lib/Analysis/
DObjCNoReturn.cpp49 bool ObjCNoReturn::isImplicitNoReturn(const ObjCMessageExpr *ME) { in isImplicitNoReturn()
/external/clang/lib/StaticAnalyzer/Core/
DCallEvent.cpp238 return isa<CallExpr>(S) || isa<ObjCMessageExpr>(S) in isCallStmt()
637 assert(getOriginExpr()->getReceiverKind() == ObjCMessageExpr::SuperInstance); in getReceiverSVal()
644 if (getOriginExpr()->getReceiverKind() == ObjCMessageExpr::SuperInstance || in isReceiverSelfOrSuper()
645 getOriginExpr()->getReceiverKind() == ObjCMessageExpr::SuperClass) in isReceiverSelfOrSuper()
782 const ObjCMessageExpr *E = getOriginExpr(); in getRuntimeDefinition()
949 return getObjCMethodCall(cast<ObjCMessageExpr>(CallSite), in getCaller()

1234