[cfe-commits] r39259 - /cfe/cfe/trunk/include/clang/AST/Decl.h
sabre at cs.uiuc.edu
sabre at cs.uiuc.edu
Wed Jul 11 09:42:05 PDT 2007
Author: sabre
Date: Wed Jul 11 11:42:05 2007
New Revision: 39259
URL: http://llvm.org/viewvc/llvm-project?rev=39259&view=rev
Log:
add accessor
Modified:
cfe/cfe/trunk/include/clang/AST/Decl.h
Modified: cfe/cfe/trunk/include/clang/AST/Decl.h
URL: http://llvm.org/viewvc/llvm-project/cfe/cfe/trunk/include/clang/AST/Decl.h?rev=39259&r1=39258&r2=39259&view=diff
==============================================================================
--- cfe/cfe/trunk/include/clang/AST/Decl.h (original)
+++ cfe/cfe/trunk/include/clang/AST/Decl.h Wed Jul 11 11:42:05 2007
@@ -147,6 +147,10 @@
void setDeclChain(Decl *D) { DeclChain = D; }
unsigned getNumParams() const;
+ VarDecl *getParamDecl(unsigned i) const {
+ assert(i < getNumParams() && "Illegal param #");
+ return ParamInfo[i];
+ }
void setParams(VarDecl **NewParamInfo, unsigned NumParams);
// Implement isa/cast/dyncast/etc.
More information about the cfe-commits
mailing list