Skip to content
Snippets Groups Projects
Commit fa3074f2 authored by Ted Kremenek's avatar Ted Kremenek
Browse files

Add ArrayRef<> interface to get the formal parameters of a BlockDecl.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@199471 91177308-0d34-0410-b5e6-96231b3b80d8
parent f67c67f6
No related branches found
No related tags found
No related merge requests found
...@@ -3264,6 +3264,12 @@ public: ...@@ -3264,6 +3264,12 @@ public:
typedef ParmVarDecl **param_iterator; typedef ParmVarDecl **param_iterator;
typedef ParmVarDecl * const *param_const_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; } bool param_empty() const { return NumParams == 0; }
param_iterator param_begin() { return ParamInfo; } param_iterator param_begin() { return ParamInfo; }
param_iterator param_end() { return ParamInfo+param_size(); } param_iterator param_end() { return ParamInfo+param_size(); }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment