diff options
| -rw-r--r-- | clang/include/clang/AST/Decl.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/include/clang/AST/Decl.h b/clang/include/clang/AST/Decl.h index 9756b4dfed2..0accdc1639c 100644 --- a/clang/include/clang/AST/Decl.h +++ b/clang/include/clang/AST/Decl.h @@ -147,6 +147,10 @@ public: 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. |

