diff options
| author | Ed Schouten <ed@FreeBSD.org> | 2009-06-14 09:24:02 +0000 |
|---|---|---|
| committer | Ed Schouten <ed@FreeBSD.org> | 2009-06-14 09:24:02 +0000 |
| commit | 7ef7bab7e3d06f660b059b903c231f100bb13cc5 (patch) | |
| tree | d472a7615b5c7e413aa62a77d0777c1a9cf76478 /lib/AST/DeclBase.cpp | |
| parent | 8ba99c00327a4394e7568244d6cffd6e62625a7a (diff) | |
Notes
Diffstat (limited to 'lib/AST/DeclBase.cpp')
| -rw-r--r-- | lib/AST/DeclBase.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/AST/DeclBase.cpp b/lib/AST/DeclBase.cpp index fd7de715db7ff..a39a506de0ae1 100644 --- a/lib/AST/DeclBase.cpp +++ b/lib/AST/DeclBase.cpp @@ -95,6 +95,13 @@ void Decl::addDeclKind(Kind k) { } } +bool Decl::isTemplateParameterPack() const { + if (const TemplateTypeParmDecl *TTP = dyn_cast<TemplateTypeParmDecl>(this)) + return TTP->isParameterPack(); + + return false; +} + //===----------------------------------------------------------------------===// // PrettyStackTraceDecl Implementation //===----------------------------------------------------------------------===// |
