зеркало из https://github.com/microsoft/clang.git
add accessors
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@40005 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Родитель
75af4801c8
Коммит
a8fe39eb2b
|
@ -425,6 +425,12 @@ public:
|
|||
bool hasFlexibleArrayMember() const { return HasFlexibleArrayMember; }
|
||||
void setHasFlexibleArrayMember(bool V) { HasFlexibleArrayMember = V; }
|
||||
|
||||
/// getNumMembers - Return the number of members, or -1 if this is a forward
|
||||
/// definition.
|
||||
int getNumMembers() const { return NumMembers; }
|
||||
const FieldDecl *getMember(unsigned i) const { return Members[i]; }
|
||||
FieldDecl *getMember(unsigned i) { return Members[i]; }
|
||||
|
||||
/// defineBody - When created, RecordDecl's correspond to a forward declared
|
||||
/// record. This method is used to mark the decl as being defined, with the
|
||||
/// specified contents.
|
||||
|
|
Загрузка…
Ссылка в новой задаче