diff options
author | Steve Naroff <snaroff@apple.com> | 2009-01-11 01:06:09 +0000 |
---|---|---|
committer | Steve Naroff <snaroff@apple.com> | 2009-01-11 01:06:09 +0000 |
commit | 6327e0d55c590b3c2766fa76ef1db241a0467df2 (patch) | |
tree | ef23b65fe5467309bca0fa63868de4bbd425dbf0 /lib/AST/DeclObjC.cpp | |
parent | de307473448fb3cebcb4c10090728300b53bca03 (diff) |
A few property related cleanups to ObjCContainerDecl AST.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@62034 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/DeclObjC.cpp')
-rw-r--r-- | lib/AST/DeclObjC.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/AST/DeclObjC.cpp b/lib/AST/DeclObjC.cpp index f39eec3dc5..bac9f7b344 100644 --- a/lib/AST/DeclObjC.cpp +++ b/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. |