/external/llvm-project/clang/lib/AST/ |
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 159 void ObjCMessageExpr::initArgsAndSelLocs(ArrayRef<Expr *> Args, in initArgsAndSelLocs() 174 ObjCMessageExpr * 175 ObjCMessageExpr::Create(const ASTContext &Context, QualType T, ExprValueKind VK, in Create() 183 ObjCMessageExpr *Mem; in Create() 189 return new (Mem) ObjCMessageExpr(T, VK, LBracLoc, SuperLoc, IsInstanceSuper, in Create() 194 ObjCMessageExpr * 195 ObjCMessageExpr::Create(const ASTContext &Context, QualType T, ExprValueKind VK, in Create() [all …]
|
/external/clang/lib/AST/ |
D | ExprObjC.cpp | 117 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/ |
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]
|
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 …]
|
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
|
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
|
D | cursor-dynamic-call.mm | 66 // 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
|
/external/llvm-project/clang/test/Index/ |
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]
|
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 …]
|
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
|
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
|
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
|
/external/clang/lib/Edit/ |
D | RewriteObjCFoundationAPI.cpp | 26 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/llvm-project/clang/lib/Edit/ |
D | RewriteObjCFoundationAPI.cpp | 25 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/llvm-project/clang/lib/ARCMigrate/ |
D | TransAutoreleasePool.cpp | 44 SmallVectorImpl<ObjCMessageExpr *> &Releases; 47 ReleaseCollector(Decl *D, SmallVectorImpl<ObjCMessageExpr *> &releases) in ReleaseCollector() 50 bool VisitObjCMessageExpr(ObjCMessageExpr *E) { in VisitObjCMessageExpr() 153 for (SmallVectorImpl<ObjCMessageExpr *>::iterator in ~AutoreleasePoolRewriter() 230 SmallVector<ObjCMessageExpr *, 4> Releases; 352 ObjCMessageExpr *ME = dyn_cast<ObjCMessageExpr>(E); in isPoolCreation() 355 ME->getReceiverKind() == ObjCMessageExpr::Class && in isPoolCreation() 358 if (ME->getReceiverKind() == ObjCMessageExpr::Instance && in isPoolCreation() 361 if (ObjCMessageExpr *recME = dyn_cast_or_null<ObjCMessageExpr>(rec)) { in isPoolCreation() 363 recME->getReceiverKind() == ObjCMessageExpr::Class && in isPoolCreation() [all …]
|
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 …]
|
/external/clang/lib/ARCMigrate/ |
D | TransAutoreleasePool.cpp | 45 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 …]
|
D | TransRetainReleaseDealloc.cpp | 61 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 …]
|
/external/clang/include/clang/Edit/ |
D | Rewriters.h | 15 class ObjCMessageExpr; variable 27 bool rewriteObjCRedundantCallWithLiteral(const ObjCMessageExpr *Msg, 30 bool rewriteToObjCLiteralSyntax(const ObjCMessageExpr *Msg, 34 bool rewriteToObjCSubscriptSyntax(const ObjCMessageExpr *Msg,
|
/external/llvm-project/clang/include/clang/Edit/ |
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,
|
/external/llvm-project/clang-tools-extra/clang-tidy/objc/ |
D | SuperSelfCheck.cpp | 71 AST_MATCHER(ObjCMessageExpr, isMessagingSuperInstance) { in AST_MATCHER() argument 72 return Node.getReceiverKind() == ObjCMessageExpr::SuperInstance; in AST_MATCHER() 89 const auto *Message = Result.Nodes.getNodeAs<ObjCMessageExpr>("message"); in check()
|
/external/clang/include/clang/Analysis/DomainSpecific/ |
D | ObjCNoReturn.h | 23 class ObjCMessageExpr; variable 42 bool isImplicitNoReturn(const ObjCMessageExpr *ME);
|
/external/llvm-project/clang/include/clang/Analysis/DomainSpecific/ |
D | ObjCNoReturn.h | 22 class ObjCMessageExpr; variable 41 bool isImplicitNoReturn(const ObjCMessageExpr *ME);
|
/external/llvm-project/clang-tools-extra/clang-tidy/google/ |
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()
|
/external/clang/lib/StaticAnalyzer/Checkers/ |
D | DynamicTypePropagation.cpp | 58 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 …]
|