From: Chris Lattner Date: Mon, 27 Aug 2007 16:50:56 +0000 (+0000) Subject: add some accessors. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5ae962da4dc277f1819a00361d4dcd49dc66bd89;p=clang add some accessors. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@41496 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/AST/Decl.h b/include/clang/AST/Decl.h index 6d9be805fe..68d35f10d2 100644 --- a/include/clang/AST/Decl.h +++ b/include/clang/AST/Decl.h @@ -424,6 +424,11 @@ public: setDefinition(true); } + /// getEnumConstantList - Return the first EnumConstantDecl in the enum. + /// + EnumConstantDecl *getEnumConstantList() { return ElementList; } + const EnumConstantDecl *getEnumConstantList() const { return ElementList; } + static bool classof(const Decl *D) { return D->getKind() == Enum; }