| /llvm-project-15.0.7/clang/lib/AST/ |
| H A D | ExprObjC.cpp | 106 ObjCMessageExpr::ObjCMessageExpr(QualType T, ExprValueKind VK, in ObjCMessageExpr() function in ObjCMessageExpr 126 ObjCMessageExpr::ObjCMessageExpr(QualType T, ExprValueKind VK, in ObjCMessageExpr() function in ObjCMessageExpr 143 ObjCMessageExpr::ObjCMessageExpr(QualType T, ExprValueKind VK, in ObjCMessageExpr() function in ObjCMessageExpr 174 ObjCMessageExpr * 183 ObjCMessageExpr *Mem; in Create() 194 ObjCMessageExpr * 202 ObjCMessageExpr *Mem; in Create() 213 ObjCMessageExpr * 221 ObjCMessageExpr *Mem; in Create() 232 ObjCMessageExpr *ObjCMessageExpr::CreateEmpty(const ASTContext &Context, in CreateEmpty() [all …]
|
| /llvm-project-15.0.7/clang/test/Index/ |
| H A D | file-refs.m | 59 // 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]
|
| H A D | c-index-getCursor-test.m | 121 // 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 …]
|
| H A D | annotate-macro-args.m | 12 // 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
|
| H A D | get-cursor-macro-args.m | 21 // 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
|
| H A D | cursor-dynamic-call.mm | 75 // CHECK: 25:3 ObjCMessageExpr=meth:14:8 {{.*}} Dynamic-call Receiver-type=ObjCObjectPointer 80 // CHECK: 35:3 ObjCMessageExpr=meth:14:8 {{.*}} Dynamic-call Receiver-type=ObjCObjectPointer 83 // CHECK: 37:3 ObjCMessageExpr=ClsMeth:15:8 {{.*}} Dynamic-call Receiver-type=ObjCClass
|
| H A D | annotate-tokens.m | 295 // 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 418 // CHECK: Punctuation: ":" [77:27 - 77:28] ObjCMessageExpr=foo::66:9 [all …]
|
| H A D | c-index-api-loadTU-test.m | 120 // 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]
|
| /llvm-project-15.0.7/clang/lib/Edit/ |
| H A D | RewriteObjCFoundationAPI.cpp | 36 if (Msg->getReceiverKind() == ObjCMessageExpr::Class) in checkForLiteralCreation() 43 if (const ObjCMessageExpr *Rec = dyn_cast<ObjCMessageExpr>( in checkForLiteralCreation() 117 const ObjCMessageExpr * in maybeAdjustInterfaceForSubscriptingCheck() 124 case ObjCMessageExpr::Instance: in maybeAdjustInterfaceForSubscriptingCheck() 125 case ObjCMessageExpr::SuperInstance: in maybeAdjustInterfaceForSubscriptingCheck() 128 case ObjCMessageExpr::Class: in maybeAdjustInterfaceForSubscriptingCheck() 131 case ObjCMessageExpr::SuperClass: in maybeAdjustInterfaceForSubscriptingCheck() 381 const ObjCMessageExpr *ParentMsg = in rewriteToArrayLiteral() 448 if (const ObjCMessageExpr *Msg = dyn_cast<ObjCMessageExpr>(E)) { in getNSArrayObjects() 901 isa<ObjCMessageExpr>(Expr) || in subscriptOperatorNeedsParens() [all …]
|
| /llvm-project-15.0.7/clang/lib/ARCMigrate/ |
| H A D | TransAutoreleasePool.cpp | 44 SmallVectorImpl<ObjCMessageExpr *> &Releases; 50 bool VisitObjCMessageExpr(ObjCMessageExpr *E) { in VisitObjCMessageExpr() 153 for (SmallVectorImpl<ObjCMessageExpr *>::iterator in ~AutoreleasePoolRewriter() 230 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() 376 ObjCMessageExpr *ME = dyn_cast<ObjCMessageExpr>(S); in isPoolDrain() [all …]
|
| H A D | TransRetainReleaseDealloc.cpp | 60 bool VisitObjCMessageExpr(ObjCMessageExpr *E) { in VisitObjCMessageExpr() 84 if (E->getReceiverKind() == ObjCMessageExpr::Instance) in VisitObjCMessageExpr() 123 case ObjCMessageExpr::SuperInstance: { in VisitObjCMessageExpr() 131 case ObjCMessageExpr::Instance: in VisitObjCMessageExpr() 141 ObjCMessageExpr *Msg = E; in VisitObjCMessageExpr() 177 bool isCommonUnusedAutorelease(ObjCMessageExpr *E) { in isCommonUnusedAutorelease() 182 bool isReturnedAfterAutorelease(ObjCMessageExpr *E) { in isReturnedAfterAutorelease() 203 bool isPlusOneAssignBeforeOrAfterAutorelease(ObjCMessageExpr *E) { in isPlusOneAssignBeforeOrAfterAutorelease() 294 if (ObjCMessageExpr *ME = dyn_cast<ObjCMessageExpr>(E)) { in getReferencedDecl() 325 void checkForGCDOrXPC(ObjCMessageExpr *Msg, Expr *&RecContainer, in checkForGCDOrXPC() [all …]
|
| H A D | Transforms.cpp | 80 if (const ObjCMessageExpr * in isPlusOne() 81 ME = dyn_cast<ObjCMessageExpr>(E->IgnoreParenCasts())) in isPlusOne() 171 ObjCMessageExpr *ME = dyn_cast<ObjCMessageExpr>(E); in hasSideEffects() 180 case ObjCMessageExpr::SuperInstance: in hasSideEffects() 182 case ObjCMessageExpr::Instance: in hasSideEffects()
|
| /llvm-project-15.0.7/clang/include/clang/Edit/ |
| H A D | Rewriters.h | 13 class ObjCMessageExpr; variable 25 bool rewriteObjCRedundantCallWithLiteral(const ObjCMessageExpr *Msg, 28 bool rewriteToObjCLiteralSyntax(const ObjCMessageExpr *Msg, 32 bool rewriteToObjCSubscriptSyntax(const ObjCMessageExpr *Msg,
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/objc/ |
| H A D | SuperSelfCheck.cpp | 70 AST_MATCHER(ObjCMessageExpr, isMessagingSuperInstance) { in AST_MATCHER() argument 71 return Node.getReceiverKind() == ObjCMessageExpr::SuperInstance; in AST_MATCHER() 88 const auto *Message = Result.Nodes.getNodeAs<ObjCMessageExpr>("message"); in check()
|
| H A D | AvoidNSErrorInitCheck.cpp | 28 Result.Nodes.getNodeAs<ObjCMessageExpr>("nserrorInit"); in check()
|
| /llvm-project-15.0.7/clang/include/clang/Analysis/DomainSpecific/ |
| H A D | ObjCNoReturn.h | 22 class ObjCMessageExpr; variable 41 bool isImplicitNoReturn(const ObjCMessageExpr *ME);
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/google/ |
| H A D | AvoidNSObjectNewCheck.cpp | 27 static bool isMessageExpressionInsideMacro(const ObjCMessageExpr *Expr) { in isMessageExpressionInsideMacro() 69 static FixItHint getCallFixItHint(const ObjCMessageExpr *Expr, in getCallFixItHint() 110 Result.Nodes.getNodeAs<ObjCMessageExpr>("new_call")) { in check()
|
| /llvm-project-15.0.7/clang/include/clang/Analysis/ |
| H A D | AnyCall.h | 78 AnyCall(const ObjCMessageExpr *ME) in AnyCall() 113 if (const auto *ME = dyn_cast<ObjCMessageExpr>(E)) { in forExpr() 172 return cast<ObjCMessageExpr>(E)->getCallReturnType(Ctx); in getReturnType()
|
| /llvm-project-15.0.7/clang/include/clang/AST/ |
| H A D | ExprObjC.h | 940 class ObjCMessageExpr final 987 ObjCMessageExpr(EmptyShell Empty, unsigned NumArgs) in ObjCMessageExpr() function 993 ObjCMessageExpr(QualType T, ExprValueKind VK, 1005 ObjCMessageExpr(QualType T, ExprValueKind VK, 1015 ObjCMessageExpr(QualType T, ExprValueKind VK, 1070 static ObjCMessageExpr *alloc(const ASTContext &C, 1076 static ObjCMessageExpr *alloc(const ASTContext &C, 1125 static ObjCMessageExpr *Create(const ASTContext &Context, QualType T, 1161 static ObjCMessageExpr *Create(const ASTContext &Context, QualType T, 1213 static ObjCMessageExpr *CreateEmpty(const ASTContext &Context, [all …]
|
| /llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/ |
| H A D | DynamicTypePropagation.cpp | 128 const ObjCMessageExpr *MessageExpr = Message.getOriginExpr(); in inferReceiverType() 136 if (MessageExpr->getReceiverKind() == ObjCMessageExpr::Class) { in inferReceiverType() 146 if (MessageExpr->getReceiverKind() == ObjCMessageExpr::SuperClass) { in inferReceiverType() 156 if (MessageExpr->getReceiverKind() == ObjCMessageExpr::SuperInstance) { in inferReceiverType() 739 findMethodDecl(const ObjCMessageExpr *MessageExpr, in findMethodDecl() 749 if (MessageExpr->getReceiverKind() == ObjCMessageExpr::Instance || in findMethodDecl() 750 MessageExpr->getReceiverKind() == ObjCMessageExpr::Class) { in findMethodDecl() 810 const ObjCMessageExpr *MessageExpr = M.getOriginExpr(); in checkPreObjCMessage() 906 const ObjCMessageExpr *MessageExpr = M.getOriginExpr(); in checkPostObjCMessage()
|
| H A D | IvarInvalidationChecker.cpp | 139 void checkObjCMessageExpr(const ObjCMessageExpr *ME); 163 void VisitObjCMessageExpr(const ObjCMessageExpr *ME); 605 const ObjCMessageExpr *ME) { in checkObjCMessageExpr() 661 if (const ObjCMessageExpr *MsgExpr = dyn_cast<ObjCMessageExpr>(E)) { in check() 691 const ObjCMessageExpr *ME) { in VisitObjCMessageExpr()
|
| H A D | ObjCMissingSuperCallChecker.cpp | 45 bool VisitObjCMessageExpr(ObjCMessageExpr *E) { in VisitObjCMessageExpr() 47 if (E->getReceiverKind() == ObjCMessageExpr::SuperInstance) in VisitObjCMessageExpr()
|
| H A D | RunLoopAutoreleaseLeakChecker.cpp | 91 const auto *ME = Match.getNodeAs<ObjCMessageExpr>(OtherMsgBind); in emitDiagnostics() 100 const auto *RL = Match.getNodeAs<ObjCMessageExpr>(RunLoopBind); in emitDiagnostics()
|
| /llvm-project-15.0.7/clang/lib/Sema/ |
| H A D | ScopeInfo.cpp | 150 void FunctionScopeInfo::recordUseOfWeak(const ObjCMessageExpr *Msg, in recordUseOfWeak() 196 } else if (const ObjCMessageExpr *MsgE = dyn_cast<ObjCMessageExpr>(E)) { in markSafeWeakUse()
|
| /llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/RetainCountChecker/ |
| H A D | RetainCountDiagnostics.cpp | 236 assert(isa<ObjCMessageExpr>(S)); in generateDiagnosticsForCallLike() 238 Mgr.getObjCMethodCall(cast<ObjCMessageExpr>(S), CurrSt, LCtx); in generateDiagnosticsForCallLike() 571 } else if (const ObjCMessageExpr *ME = dyn_cast<ObjCMessageExpr>(S)) { in VisitNode() 713 if (const auto *ME = dyn_cast_or_null<ObjCMessageExpr>(CE)) { in GetAllocationSite() 732 if (const ObjCMessageExpr *ME = SP->getStmtAs<ObjCMessageExpr>()) in GetAllocationSite()
|