summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST
diff options
context:
space:
mode:
authorManman Ren <manman.ren@gmail.com>2016-01-27 20:00:32 +0000
committerManman Ren <manman.ren@gmail.com>2016-01-27 20:00:32 +0000
commitefe1bacd92a315b74f526f21419559dac93738ab (patch)
treebacf012a55516f7855d71873fb7bc44072456c39 /clang/lib/AST
parent95b533fe4b5a2603f11a6c967319d4ab0ef865ff (diff)
downloadbcm5719-llvm-efe1bacd92a315b74f526f21419559dac93738ab.tar.gz
bcm5719-llvm-efe1bacd92a315b74f526f21419559dac93738ab.zip
Class Property: handle class properties.
At places where we handle instance properties, if necessary. rdar://23891898 llvm-svn: 258979
Diffstat (limited to 'clang/lib/AST')
-rw-r--r--clang/lib/AST/DeclObjC.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/AST/DeclObjC.cpp b/clang/lib/AST/DeclObjC.cpp
index aa012edf65c..e804fef2432 100644
--- a/clang/lib/AST/DeclObjC.cpp
+++ b/clang/lib/AST/DeclObjC.cpp
@@ -122,7 +122,7 @@ bool ObjCContainerDecl::HasUserDeclaredSetterMethod(
// declaration of this property. If one found, presumably a setter will
// be provided (properties declared in categories will not get
// auto-synthesized).
- for (const auto *P : Cat->instance_properties())
+ for (const auto *P : Cat->properties())
if (P->getIdentifier() == Property->getIdentifier()) {
if (P->getPropertyAttributes() & ObjCPropertyDecl::OBJC_PR_readwrite)
return true;
@@ -1837,7 +1837,7 @@ void ObjCProtocolDecl::collectInheritedProtocolProperties(
ProtocolPropertyMap &PM) const {
if (const ObjCProtocolDecl *PDecl = getDefinition()) {
bool MatchFound = false;
- for (auto *Prop : PDecl->instance_properties()) {
+ for (auto *Prop : PDecl->properties()) {
if (Prop == Property)
continue;
if (Prop->getIdentifier() == Property->getIdentifier()) {
OpenPOWER on IntegriCloud