diff options
author | Douglas Gregor <dgregor@apple.com> | 2010-12-20 16:52:59 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2010-12-20 16:52:59 +0000 |
commit | 87dd697dcc8ecb64df73ae64d61b8c80ff0c157c (patch) | |
tree | 0222a2df7114ce46f1829744c97ebd08a5b736ad /include/clang/AST/TemplateBase.h | |
parent | a9150cdac3d666671fce74cac621d68cc0ade17d (diff) |
Clean up the handling of template argument packs, especially in the
area of printing template arguments. The functionality changes here
are limited to cases of variadic templates that aren't yet enabled.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@122250 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/AST/TemplateBase.h')
-rw-r--r-- | include/clang/AST/TemplateBase.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/clang/AST/TemplateBase.h b/include/clang/AST/TemplateBase.h index 79104ad68b..fc1d4232d6 100644 --- a/include/clang/AST/TemplateBase.h +++ b/include/clang/AST/TemplateBase.h @@ -23,6 +23,7 @@ namespace llvm { class FoldingSetNodeID; + class raw_ostream; } namespace clang { @@ -30,6 +31,7 @@ namespace clang { class Decl; class DiagnosticBuilder; class Expr; +struct PrintingPolicy; class TypeSourceInfo; /// \brief Represents a template argument within a class template @@ -280,6 +282,9 @@ public: /// same. bool structurallyEquals(const TemplateArgument &Other) const; + /// \brief Print this template argument to the given output stream. + void print(const PrintingPolicy &Policy, llvm::raw_ostream &Out) const; + /// \brief Used to insert TemplateArguments into FoldingSets. void Profile(llvm::FoldingSetNodeID &ID, ASTContext &Context) const; }; |