]> granicus.if.org Git - clang/commitdiff
add some accessors.
authorChris Lattner <sabre@nondot.org>
Mon, 27 Aug 2007 16:50:56 +0000 (16:50 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 27 Aug 2007 16:50:56 +0000 (16:50 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@41496 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/AST/Decl.h

index 6d9be805fe53d5bc4b3d77091d17573875dba2df..68d35f10d23c0c475352d1472539f06db1e885ad 100644 (file)
@@ -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;
   }