зеркало из https://github.com/microsoft/clang-1.git
add an ivar_size() method that never returns -1.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44944 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Родитель
25bb23aa20
Коммит
5564e07af5
|
@ -114,8 +114,9 @@ public:
|
|||
int getNumInstanceVariables() const { return NumIvars; }
|
||||
|
||||
typedef ObjcIvarDecl * const *ivar_iterator;
|
||||
unsigned ivar_size() const { return NumIvars == -1 ?0 : NumIvars; }
|
||||
ivar_iterator ivar_begin() const { return Ivars; }
|
||||
ivar_iterator ivar_end() const { return Ivars+(NumIvars == -1 ?0 : NumIvars);}
|
||||
ivar_iterator ivar_end() const { return Ivars + ivar_size();}
|
||||
|
||||
ObjcMethodDecl** getInstanceMethods() const { return InstanceMethods; }
|
||||
int getNumInstanceMethods() const { return NumInstanceMethods; }
|
||||
|
|
Загрузка…
Ссылка в новой задаче