diff options
author | David Majnemer <david.majnemer@gmail.com> | 2015-12-27 07:16:27 +0000 |
---|---|---|
committer | David Majnemer <david.majnemer@gmail.com> | 2015-12-27 07:16:27 +0000 |
commit | e3b6e588e0ac22c4bc82694db7c498733451df7c (patch) | |
tree | 6d09c7da4e52c80b8560d6cc98e585c2da85633a /include/clang/AST/DeclTemplate.h | |
parent | 49f141fb7995d96b3a76e1df0df839385d3162b2 (diff) |
ArrayRef-ize TemplateParameterList. NFC
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@256463 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/AST/DeclTemplate.h')
-rw-r--r-- | include/clang/AST/DeclTemplate.h | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/include/clang/AST/DeclTemplate.h b/include/clang/AST/DeclTemplate.h index 8d62b23748..8657baeb92 100644 --- a/include/clang/AST/DeclTemplate.h +++ b/include/clang/AST/DeclTemplate.h @@ -68,15 +68,13 @@ protected: } TemplateParameterList(SourceLocation TemplateLoc, SourceLocation LAngleLoc, - NamedDecl **Params, unsigned NumParams, - SourceLocation RAngleLoc); + ArrayRef<NamedDecl *> Params, SourceLocation RAngleLoc); public: static TemplateParameterList *Create(const ASTContext &C, SourceLocation TemplateLoc, SourceLocation LAngleLoc, - NamedDecl **Params, - unsigned NumParams, + ArrayRef<NamedDecl *> Params, SourceLocation RAngleLoc); /// \brief Iterates through the template parameters in this list. @@ -155,9 +153,9 @@ template <size_t N> class FixedSizeTemplateParameterListStorage { public: FixedSizeTemplateParameterListStorage(SourceLocation TemplateLoc, SourceLocation LAngleLoc, - NamedDecl **Params, + ArrayRef<NamedDecl *> Params, SourceLocation RAngleLoc) - : List(TemplateLoc, LAngleLoc, Params, N, RAngleLoc) { + : List(TemplateLoc, LAngleLoc, Params, RAngleLoc) { // Because we're doing an evil layout hack above, have some // asserts, just to double-check everything is laid out like // expected. |