forked from OSchip/llvm-project
Add ArrayRef<> interface to get the formal parameters of a BlockDecl.
llvm-svn: 199471
This commit is contained in:
parent
5a44496988
commit
81541c561c
|
@ -3264,6 +3264,12 @@ public:
|
|||
typedef ParmVarDecl **param_iterator;
|
||||
typedef ParmVarDecl * const *param_const_iterator;
|
||||
|
||||
// ArrayRef access to formal parameters.
|
||||
// FIXME: Should eventual replace iterator access.
|
||||
ArrayRef<ParmVarDecl*> parameters() const {
|
||||
return llvm::makeArrayRef(ParamInfo, param_size());
|
||||
}
|
||||
|
||||
bool param_empty() const { return NumParams == 0; }
|
||||
param_iterator param_begin() { return ParamInfo; }
|
||||
param_iterator param_end() { return ParamInfo+param_size(); }
|
||||
|
|
Loading…
Reference in New Issue