[cfe-commits] r41496 - /cfe/trunk/include/clang/AST/Decl.h

Chris Lattner sabre at nondot.org
Mon Aug 27 09:50:56 PDT 2007


Author: lattner
Date: Mon Aug 27 11:50:56 2007
New Revision: 41496

URL: http://llvm.org/viewvc/llvm-project?rev=41496&view=rev
Log:
add some accessors.

Modified:
    cfe/trunk/include/clang/AST/Decl.h

Modified: cfe/trunk/include/clang/AST/Decl.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/AST/Decl.h?rev=41496&r1=41495&r2=41496&view=diff

==============================================================================
--- cfe/trunk/include/clang/AST/Decl.h (original)
+++ cfe/trunk/include/clang/AST/Decl.h Mon Aug 27 11:50:56 2007
@@ -424,6 +424,11 @@
     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;
   }





More information about the cfe-commits mailing list