aboutsummaryrefslogtreecommitdiff
path: root/include/clang/AST/TemplateBase.h
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2011-01-11 23:09:57 +0000
committerDouglas Gregor <dgregor@apple.com>2011-01-11 23:09:57 +0000
commit203e6a322ae29d577acafcb1572a57ec16e1e730 (patch)
treeeb678f079634c2ec3d50e4a18eedad9331d23512 /include/clang/AST/TemplateBase.h
parent82a0f4e93c055fb12f5ad7c3d146d50eb201308f (diff)
Add TemplateArgument::CreatePackCopy() to create a new parameter pack
in ASTContext-allocated memory, copying the provided template arguments. Use this new routine where we can. No functionality change. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@123289 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/AST/TemplateBase.h')
-rw-r--r--include/clang/AST/TemplateBase.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/clang/AST/TemplateBase.h b/include/clang/AST/TemplateBase.h
index 5c7dae0a7c..6ea4e3b6de 100644
--- a/include/clang/AST/TemplateBase.h
+++ b/include/clang/AST/TemplateBase.h
@@ -191,6 +191,12 @@ public:
getAsIntegral()->~APSInt();
}
+ /// \brief Create a new template argument pack by copying the given set of
+ /// template arguments.
+ static TemplateArgument CreatePackCopy(ASTContext &Context,
+ const TemplateArgument *Args,
+ unsigned NumArgs);
+
/// \brief Return the kind of stored template argument.
ArgKind getKind() const { return (ArgKind)Kind; }