summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaObjC/objc-class-property.m
Commit message (Collapse)AuthorAgeFilesLines
* Sema: use PropertyDecl for property selectorSaleem Abdulrasool2017-02-201-0/+9
| | | | | | | | | | | Using the constructed name for the class properties with dot syntax may yield an inappropriate selector (i.e. if it is specified via property attributes). Prefer the declaration for the selector, falling back to the constructed name otherwise. Patch by David Herzka! llvm-svn: 295683
* ObjC Class Property: diagnostics when accessing a class property using instance.Manman Ren2016-06-281-0/+1
| | | | | | | | | | | | | When a class property is accessed with an object instance, before this commit, we try to apply a typo correction of the same property: property 'c' not found on object of type 'A *'; did you mean 'c'? With this commit, we correctly emit a diagnostics: property 'c' is a class property; did you mean to access it with class 'A'? rdar://26866973 llvm-svn: 274076
* ObjectiveC Class Properties: warn if a class property accessor is mistakenly anManman Ren2016-05-181-0/+13
| | | | | | | | | | | | | instance method. When diagnosing unimplemented class property, make sure we emit a warning when we only see an instance method with the right selector. Also warn when we only see a class method for an instance property. rdar://26141719 llvm-svn: 269968
* ObjC class properties: add diagnostics for unimplemented class properties.Manman Ren2016-04-121-2/+4
| | | | | | rdar://24711047 llvm-svn: 266146
* ObjC: add getter/setter for class properties to global pool.Manman Ren2016-03-231-0/+8
| | | | | | rdar://problem/25323072 llvm-svn: 264196
* Add has_feature objc_class_property.Manman Ren2016-03-101-0/+4
| | | | | | rdar://23891898 llvm-svn: 263171
* Class Property: warn for synthesize on a class property.Manman Ren2016-01-291-2/+1
| | | | | | rdar://23891898 llvm-svn: 259226
* Class Property: parse @dynamic (class).Manman Ren2016-01-291-2/+3
| | | | | | rdar://23891898 llvm-svn: 259224
* Class Property: class property and instance property can have the same name.Manman Ren2016-01-281-0/+1
| | | | | | | | | | | | | | | | | | | Add "enum ObjCPropertyQueryKind" to a few APIs that used to only take the name of the property: ObjCPropertyDecl::findPropertyDecl, ObjCContainerDecl::FindPropertyDeclaration, ObjCInterfaceDecl::FindPropertyVisibleInPrimaryClass, ObjCImplDecl::FindPropertyImplDecl, and Sema::ActOnPropertyImplDecl. ObjCPropertyQueryKind currently has 3 values: OBJC_PR_query_unknown, OBJC_PR_query_instance, OBJC_PR_query_class This extra parameter specifies that we are looking for an instance property with the given name, or a class property with the given name, or any property with the given name (if both exist, the instance property will be returned). rdar://23891898 llvm-svn: 259070
* Class Property: create accessors (class methods) for class property.Manman Ren2016-01-271-0/+30
Change a few places where we assume property accessors can only be instance methods. rdar://23891898 llvm-svn: 258980
OpenPOWER on IntegriCloud