| /llvm-project-15.0.7/clang/test/Index/ |
| H A D | arc-annotate.m | 16 // CHECK: Punctuation: "@" [2:1 - 2:2] ObjCPropertyDecl=property:2:34 17 // CHECK: Keyword: "property" [2:2 - 2:10] ObjCPropertyDecl=property:2:34 18 // CHECK: Punctuation: "(" [2:11 - 2:12] ObjCPropertyDecl=property:2:34 19 // CHECK: Keyword: "strong" [2:12 - 2:18] ObjCPropertyDecl=property:2:34 20 // CHECK: Punctuation: "," [2:18 - 2:19] ObjCPropertyDecl=property:2:34 21 // CHECK: Keyword: "nonatomic" [2:20 - 2:29] ObjCPropertyDecl=property:2:34 22 // CHECK: Punctuation: ")" [2:29 - 2:30] ObjCPropertyDecl=property:2:34 24 // CHECK: Identifier: "property" [2:34 - 2:42] ObjCPropertyDecl=property:2:34 26 // CHECK: Punctuation: "@" [3:1 - 3:2] ObjCPropertyDecl=second_property:3:32 31 // CHECK: Keyword: "weak" [3:23 - 3:27] ObjCPropertyDecl=second_property:3:32 [all …]
|
| H A D | complete-block-property-assignment.m | 37 // CHECK-CC1: ObjCPropertyDecl:{ResultType int}{TypedText foo} (37) 38 // CHECK-CC1-NEXT: ObjCPropertyDecl:{ResultType Obj *}{TypedText obj} (35) 64 // CHECK-NO: ObjCPropertyDecl:{ResultType int}{TypedText foo} (37) 65 // CHECK-NO-NEXT: ObjCPropertyDecl:{ResultType Obj *}{TypedText obj} (35) 66 // CHECK-NO-NEXT: ObjCPropertyDecl:{ResultType void (^)(Obj *)}{TypedText onAction} (37) 67 // CHECK-NO-NEXT: ObjCPropertyDecl:{ResultType FooBlock}{TypedText onEventHandler} (35) 69 // CHECK-NO-NEXT: ObjCPropertyDecl:{ResultType int (^)(int)}{TypedText processEvent} (35) 72 // CHECK-NO1: ObjCPropertyDecl:{ResultType int}{TypedText foo} (37) 73 // CHECK-NO1-NEXT: ObjCPropertyDecl:{ResultType Obj *}{TypedText obj} (35) 74 // CHECK-NO1-NEXT: ObjCPropertyDecl:{ResultType void (^)(Obj *)}{TypedText onAction} (37) [all …]
|
| H A D | complete-properties.m | 60 // CHECK-CC1: ObjCPropertyDecl:{ResultType int}{TypedText Prop0} 61 // CHECK-CC1: ObjCPropertyDecl:{ResultType int}{TypedText Prop1} 62 // CHECK-CC1: ObjCPropertyDecl:{ResultType float}{TypedText Prop2} 63 // CHECK-CC1: ObjCPropertyDecl:{ResultType id}{TypedText Prop3} 64 // CHECK-CC1: ObjCPropertyDecl:{ResultType id}{TypedText Prop4} 66 // CHECK-CC2: ObjCPropertyDecl:{ResultType int}{TypedText Prop0} 67 // CHECK-CC2: ObjCPropertyDecl:{ResultType int}{TypedText Prop1} 68 // CHECK-CC2-NEXT: ObjCPropertyDecl:{ResultType id}{TypedText Prop3} 69 // CHECK-CC2: ObjCPropertyDecl:{ResultType id}{TypedText Prop4} 76 // CHECK-CC4: ObjCPropertyDecl:{ResultType int}{TypedText Prop0} [all …]
|
| H A D | complete-block-properties.m | 42 //CHECK-CC1: ObjCPropertyDecl:{ResultType int}{TypedText barBlock}{LeftParen (}{Placeholder int *}{… 43 //CHECK-CC1-NEXT: ObjCPropertyDecl:{ResultType void}{TypedText block}{LeftParen (}{RightParen )} (3… 44 //CHECK-CC1-NEXT: ObjCPropertyDecl:{ResultType void (^)()}{TypedText block}{Equal = }{Placeholder … 47 //CHECK-CC1-NEXT: ObjCPropertyDecl:{ResultType int}{TypedText foo} (35) 48 //CHECK-CC1-NEXT: ObjCPropertyDecl:{ResultType void}{TypedText fooBlock}{LeftParen (}{Placeholder F… 49 //CHECK-CC1-NEXT: ObjCPropertyDecl:{ResultType Test *}{TypedText getObject}{LeftParen (}{Placeholde… 50 //CHECK-CC1-NEXT: ObjCPropertyDecl:{ResultType int}{TypedText performA}{LeftParen (}{RightParen )} … 51 //CHECK-CC1-NEXT: ObjCPropertyDecl:{ResultType int}{TypedText performB}{LeftParen (}{Placeholder in… 86 //CHECK-CC3: ObjCPropertyDecl:{ResultType void}{TypedText explicit}{LeftParen (}{RightParen )} (35) 87 //CHECK-CC3-NEXT: ObjCPropertyDecl:{ResultType void (^)()}{TypedText explicit}{Equal = }{Placehold… [all …]
|
| H A D | annotate-tokens.m | 503 // CHECK: Punctuation: "@" [110:1 - 110:2] ObjCPropertyDecl=foo:110:33 504 // CHECK: Keyword: "property" [110:2 - 110:10] ObjCPropertyDecl=foo:110:33 505 // CHECK: Punctuation: "(" [110:11 - 110:12] ObjCPropertyDecl=foo:110:33 507 // CHECK: Punctuation: "," [110:20 - 110:21] ObjCPropertyDecl=foo:110:33 508 // CHECK: Keyword: "copy" [110:22 - 110:26] ObjCPropertyDecl=foo:110:33 509 // CHECK: Punctuation: ")" [110:26 - 110:27] ObjCPropertyDecl=foo:110:33 511 // CHECK: Punctuation: "*" [110:32 - 110:33] ObjCPropertyDecl=foo:110:33 512 // CHECK: Identifier: "foo" [110:33 - 110:36] ObjCPropertyDecl=foo:110:33 514 // CHECK: Punctuation: "(" [111:11 - 111:12] ObjCPropertyDecl=foo2:111:27 516 // CHECK: Punctuation: ")" [111:20 - 111:21] ObjCPropertyDecl=foo2:111:27 [all …]
|
| H A D | complete-member-access.m | 46 // CHECK-CC1: ObjCPropertyDecl:{ResultType int}{TypedText prop1} 47 // CHECK-CC1: ObjCPropertyDecl:{ResultType float}{TypedText ProtoProp} 63 // CHECK-CC3: ObjCPropertyDecl:{ResultType int}{TypedText myProp} (35) 64 // CHECK-CC3: ObjCPropertyDecl:{ResultType int}{TypedText prop1} (37) 65 // CHECK-CC3: ObjCPropertyDecl:{ResultType float}{TypedText ProtoProp} (37) 74 // CHECK-CC4-NEXT: ObjCPropertyDecl:{ResultType int}{TypedText myProp} (35) 75 // CHECK-CC4-NEXT: ObjCPropertyDecl:{ResultType int}{TypedText prop1} (37) 76 // CHECK-CC4-NEXT: ObjCPropertyDecl:{ResultType float}{TypedText ProtoProp} (37)
|
| H A D | availability.mm | 53 // CHECK: ObjCPropertyDecl=p0:6:15 (macos, introduced=8.0) 54 // CHECK: ObjCPropertyDecl=p1:7:15 (macos, introduced=9.0) 63 // CHECK: ObjCPropertyDecl=p2:21:15 (macos, introduced=10.0) 64 // CHECK: ObjCPropertyDecl=p3:22:15 (macos, introduced=11.0) 73 // CHECK: ObjCPropertyDecl=p4:36:15 (macos, introduced=10.0) 74 // CHECK: ObjCPropertyDecl=p5:37:15 (macos, introduced=11.0)
|
| H A D | properties-class-extensions.m | 51 // CHECK: properties-class-extensions.m:6:15: ObjCPropertyDecl=a:6:15 Extent=[6:1 - 6:16] 57 // CHECK: properties-class-extensions.m:9:15: ObjCPropertyDecl=b:9:15 Extent=[9:1 - 9:16] 63 // CHECK: properties-class-extensions.m:16:25: ObjCPropertyDecl=bar:16:25 [readonly,] Extent=[16:1 … 68 // CHECK: properties-class-extensions.m:19:26: ObjCPropertyDecl=bar:19:26 [readwrite,] Extent=[19:1… 76 // CHECK: properties-class-extensions.m:26:39: ObjCPropertyDecl=Rdar8467189_Bar:26:39 [readonly,] E… 81 // CHECK-NOT: properties-class-extensions.m:31:40: ObjCPropertyDecl=Rdar8467189_Bar:31:40 Extent=[3… 85 // CHECK: properties-class-extensions.m:31:40: ObjCPropertyDecl=Rdar8467189_Bar:31:40 [readwrite,] … 93 // CHECK: properties-class-extensions.m:38:34: ObjCPropertyDecl=qux:38:34 [assign,readwrite,] Exten…
|
| H A D | property-getter-setter.m | 8 // CHECK: ObjCPropertyDecl=a:2:52 [getter,assign,readwrite,setter,] (getter=b) (setter=c:) [typedec… 9 // CHECK: ObjCPropertyDecl=d:3:41 [readonly,getter,assign,] (getter=e) [typedeclaration=id] [typeki… 10 // CHECK: ObjCPropertyDecl=f:4:33 [assign,readwrite,] [typedeclaration=id] [typekind=ObjCId]
|
| H A D | print-type.m | 15 // CHECK: ObjCPropertyDecl=x:2:25 [readonly,] [type=id] [typekind=ObjCId] [canonicaltype=id] [canon… 23 // CHECK: ObjCPropertyDecl=classProp:7:23 [class,] [type=int] [typekind=Int] [isPOD=1]
|
| H A D | annotate-comments-objc.m | 113 // CHECK: annotate-comments-objc.m:23:50: ObjCPropertyDecl=property1_isdoxy1:{{.*}} property1_isdox… 114 // CHECK: annotate-comments-objc.m:24:50: ObjCPropertyDecl=property1_isdoxy2:{{.*}} property1_isdox… 115 // CHECK: annotate-comments-objc.m:25:50: ObjCPropertyDecl=property1_isdoxy3:{{.*}} property1_isdox… 116 // CHECK: annotate-comments-objc.m:26:50: ObjCPropertyDecl=property1_isdoxy4:{{.*}} property1_isdox…
|
| /llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/ |
| H A D | ObjCPropertyChecker.cpp | 26 : public Checker<check::ASTDecl<ObjCPropertyDecl>> { 27 void checkCopyMutable(const ObjCPropertyDecl *D, BugReporter &BR) const; 30 void checkASTDecl(const ObjCPropertyDecl *D, AnalysisManager &Mgr, 35 void ObjCPropertyChecker::checkASTDecl(const ObjCPropertyDecl *D, in checkASTDecl() 41 void ObjCPropertyChecker::checkCopyMutable(const ObjCPropertyDecl *D, in checkCopyMutable() 43 if (D->isReadOnly() || D->getSetterKind() != ObjCPropertyDecl::Copy) in checkCopyMutable()
|
| H A D | CheckObjCDealloc.cpp | 163 const ObjCPropertyDecl * 571 if (PropDecl->getSetterKind() == ObjCPropertyDecl::Retain) in diagnoseMissingReleases() 693 if (PropDecl->getSetterKind() == ObjCPropertyDecl::Weak) in diagnoseExtraRelease() 821 auto *ShadowedPropDecl = dyn_cast<ObjCPropertyDecl>(*I); in findShadowedPropertyDecl() 888 const ObjCPropertyDecl *PropDecl; in getDeallocReleaseRequirement() 892 ObjCPropertyDecl::SetterKind SK = PropDecl->getSetterKind(); in getDeallocReleaseRequirement() 897 case ObjCPropertyDecl::Retain: in getDeallocReleaseRequirement() 898 case ObjCPropertyDecl::Copy: in getDeallocReleaseRequirement() 907 case ObjCPropertyDecl::Weak: in getDeallocReleaseRequirement() 910 case ObjCPropertyDecl::Assign: in getDeallocReleaseRequirement() [all …]
|
| H A D | IvarInvalidationChecker.cpp | 59 typedef llvm::DenseMap<const ObjCPropertyDecl*, 62 const ObjCPropertyDecl*> IvarToPropMapTy; 192 const ObjCPropertyDecl *Prop, 300 const ObjCPropertyDecl *Prop, in findPropertyBackingIvar() 348 const ObjCPropertyDecl *PD = IvarToPopertyMap.lookup(IvarDecl); in printIvar() 387 const ObjCPropertyDecl *PD = I->second; in visit() 397 PD = cast<ObjCPropertyDecl>(PD->getCanonicalDecl()); in visit() 619 const ObjCPropertyDecl *PD = PA->getExplicitProperty(); in checkObjCPropertyRefExpr() 621 PD = cast<ObjCPropertyDecl>(PD->getCanonicalDecl()); in checkObjCPropertyRefExpr()
|
| H A D | DirectIvarAssignment.cpp | 55 const ObjCPropertyDecl*> IvarToPropertyMapTy; 94 static const ObjCIvarDecl *findPropertyBackingIvar(const ObjCPropertyDecl *PD, in findPropertyBackingIvar() 180 const ObjCPropertyDecl *PD = I->second; in VisitBinaryOperator()
|
| /llvm-project-15.0.7/lldb/test/Shell/SymbolFile/DWARF/ |
| H A D | clang-ast-from-dwarf-objc-property.m | 17 // CHECK: |-ObjCPropertyDecl {{.*}} ro_number 'int' readonly 20 // CHECK: |-ObjCPropertyDecl {{.*}} rw_number 'int' assign readwrite 23 // CHECK: |-ObjCPropertyDecl {{.*}} manual 'int' readonly 26 // CHECK: |-ObjCPropertyDecl {{.*}} class_property 'int' readonly class
|
| /llvm-project-15.0.7/clang/lib/ARCMigrate/ |
| H A D | TransGCAttrs.cpp | 29 std::vector<ObjCPropertyDecl *> &AllProps; 34 std::vector<ObjCPropertyDecl *> &AllProps) in GCAttrsCollector() 51 if (ObjCPropertyDecl *PropD = dyn_cast<ObjCPropertyDecl>(D)) { in TraverseDecl() 217 typedef llvm::TinyPtrVector<ObjCPropertyDecl *> IndivPropsTy; 232 SmallVector<std::pair<AttributedTypeLoc, ObjCPropertyDecl *>, 4> ATLs; in checkAllAtProps() 237 ObjCPropertyDecl *PD = *PI; in checkAllAtProps() 297 std::vector<ObjCPropertyDecl *> &AllProps) { in checkAllProps() 298 typedef llvm::TinyPtrVector<ObjCPropertyDecl *> IndivPropsTy; in checkAllProps() 302 ObjCPropertyDecl *PD = AllProps[i]; in checkAllProps() 321 std::vector<ObjCPropertyDecl *> AllProps; in traverseTU()
|
| H A D | TransZeroOutPropsInDealloc.cpp | 31 llvm::DenseMap<ObjCPropertyDecl*, ObjCPropertyImplDecl*> SynthesizedProperties; 57 for (llvm::DenseMap<ObjCPropertyDecl*, ObjCPropertyImplDecl*>::iterator in VisitObjCMessageExpr() 60 ObjCPropertyDecl *PropDecl = P->first; in VisitObjCMessageExpr() 118 ObjCPropertyDecl *PD = PID->getPropertyDecl(); in TraverseObjCMethodDecl() 172 for (llvm::DenseMap<ObjCPropertyDecl*, ObjCPropertyImplDecl*>::iterator in isZeroingPropIvar() 203 if (ObjCPropertyDecl *PDecl = PropRefExp->getExplicitProperty()) { in isZeroingPropIvar()
|
| /llvm-project-15.0.7/clang/lib/Sema/ |
| H A D | SemaObjCProperty.cpp | 194 ObjCPropertyDecl *Res = nullptr; in ActOnProperty() 404 ObjCPropertyDecl * 615 ObjCPropertyDecl *PDecl = ObjCPropertyDecl::Create(Context, DC, in CreatePropertyDecl() 624 if (ObjCPropertyDecl *prevDecl = ObjCPropertyDecl::findPropertyDecl( in CreatePropertyDecl() 837 static ObjCPropertyDecl * 890 const ObjCPropertyDecl *Prop; in SelectPropertyForSynthesisFromProtocols() 1032 if (ObjCPropertyDecl *OrigProp = dyn_cast<ObjCPropertyDecl>(Found)) in hasWrittenStorageAttribute() 1097 ObjCPropertyDecl *property = nullptr; in ActOnPropertyImplDecl() 1805 ObjCPropertyDecl *&PropEntry = in CollectImmediateProperties() 1998 ObjCPropertyDecl *Prop, in DiagnoseUnimplementedAccessor() [all …]
|
| /llvm-project-15.0.7/clang/lib/AST/ |
| H A D | DeclObjC.cpp | 125 const ObjCPropertyDecl *Property) const { in HasUserDeclaredSetterMethod() 177 ObjCPropertyDecl * 193 if (ObjCPropertyDecl *PD = ObjCPropertyDecl::findPropertyDecl(Ext, in findPropertyDecl() 200 ObjCPropertyDecl *classProp = nullptr; in findPropertyDecl() 268 if (ObjCPropertyDecl *PD = in FindPropertyDeclaration() 381 ObjCPropertyDecl * 392 if (ObjCPropertyDecl *PD = in FindPropertyVisibleInPrimaryClass() 1342 const ObjCPropertyDecl * 2294 void ObjCPropertyDecl::anchor() {} in anchor() 2296 ObjCPropertyDecl *ObjCPropertyDecl::Create(ASTContext &C, DeclContext *DC, in Create() [all …]
|
| /llvm-project-15.0.7/clang/test/AST/ |
| H A D | property-atomic-bool.m | 15 // CHECK: ObjCPropertyDecl {{.*}} p '_Atomic(_Bool)' {{.*}} nonatomic 20 // CHECK: ObjCPropertyDecl {{.*}} p 'AtomicBool':'_Atomic(_Bool)' {{.*}} nonatomic 26 // CHECK: ObjCPropertyDecl {{.*}} p '_Atomic(_Bool)' 32 // CHECK: ObjCPropertyDecl {{.*}} p 'AtomicBool':'_Atomic(_Bool)'
|
| H A D | ast-dump-attr.m | 26 // CHECK: ObjCPropertyDecl{{.*}} Test3 'void *' readonly 28 // CHECK-NEXT: ObjCPropertyDecl{{.*}} Test4 'void *' readonly 32 // CHECK: ObjCPropertyDecl{{.*}} Test5 'NSObject *' readonly
|
| /llvm-project-15.0.7/clang/include/clang/AST/ |
| H A D | DeclObjC.h | 55 class ObjCPropertyDecl; variable 732 class ObjCPropertyDecl : public NamedDecl { 785 static ObjCPropertyDecl * 974 filtered_decl_iterator<ObjCPropertyDecl, 991 filtered_decl_iterator<ObjCPropertyDecl, 1077 ObjCPropertyDecl * 1083 ObjCPropertyDecl *>; 1779 ObjCPropertyDecl 2772 ObjCPropertyDecl *PropertyDecl; 2791 ObjCPropertyDecl *property, in ObjCPropertyImplDecl() [all …]
|
| /llvm-project-15.0.7/clang/include/clang/Sema/ |
| H A D | DelayedDiagnostic.h | 44 class ObjCPropertyDecl; variable 140 const ObjCPropertyDecl *ObjCProperty, 225 const ObjCPropertyDecl *getObjCProperty() const { in getObjCProperty() 238 const ObjCPropertyDecl *ObjCProperty;
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/objc/ |
| H A D | PropertyDeclarationCheck.cpp | 41 FixItHint generateFixItHint(const ObjCPropertyDecl *Decl, NamingStyle Style) { in generateFixItHint() 111 Result.Nodes.getNodeAs<ObjCPropertyDecl>("property"); in check()
|