summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/DeclObjC.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/lib/AST/DeclObjC.cpp')
-rw-r--r--clang/lib/AST/DeclObjC.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/lib/AST/DeclObjC.cpp b/clang/lib/AST/DeclObjC.cpp
index f39eec3dc56..bac9f7b3444 100644
--- a/clang/lib/AST/DeclObjC.cpp
+++ b/clang/lib/AST/DeclObjC.cpp
@@ -383,6 +383,12 @@ unsigned ObjCContainerDecl::getNumClassMethods() const {
sum++;
return sum;
}
+unsigned ObjCContainerDecl::getNumProperties() const {
+ unsigned sum = 0;
+ for (prop_iterator I=prop_begin(), E=prop_end(); I != E; ++I)
+ sum++;
+ return sum;
+}
/// addProperties - Insert property declaration AST nodes into
/// ObjCContainerDecl's PropertyDecl field.
OpenPOWER on IntegriCloud