diff options
author | Anders Carlsson <andersca@mac.com> | 2009-06-12 19:58:00 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2009-06-12 19:58:00 +0000 |
commit | 941df7dac2c733bad57342a01ca4c8dac956ef63 (patch) | |
tree | 7f8bf68ecf6197635756052f85768ad3c7108809 /include/clang/Parse/Action.h | |
parent | ba1ecb564c05c2b749193e8deef1df3b69ea3f54 (diff) |
Parse support for C++0x type parameter packs.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@73247 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Parse/Action.h')
-rw-r--r-- | include/clang/Parse/Action.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/include/clang/Parse/Action.h b/include/clang/Parse/Action.h index 813b5974e3..43406b99a6 100644 --- a/include/clang/Parse/Action.h +++ b/include/clang/Parse/Action.h @@ -1166,16 +1166,18 @@ public: /// ActOnTypeParameter - Called when a C++ template type parameter /// (e.g., "typename T") has been parsed. Typename specifies whether /// the keyword "typename" was used to declare the type parameter - /// (otherwise, "class" was used), and KeyLoc is the location of the - /// "class" or "typename" keyword. ParamName is the name of the - /// parameter (NULL indicates an unnamed template parameter) and - /// ParamNameLoc is the location of the parameter name (if any). + /// (otherwise, "class" was used), ellipsis specifies whether this is a + /// C++0x parameter pack, EllipsisLoc specifies the start of the ellipsis, + /// and KeyLoc is the location of the "class" or "typename" keyword. + // ParamName is the name of the parameter (NULL indicates an unnamed template + // parameter) and ParamNameLoc is the location of the parameter name (if any) /// If the type parameter has a default argument, it will be added /// later via ActOnTypeParameterDefault. Depth and Position provide /// the number of enclosing templates (see /// ActOnTemplateParameterList) and the number of previous /// parameters within this template parameter list. - virtual DeclPtrTy ActOnTypeParameter(Scope *S, bool Typename, + virtual DeclPtrTy ActOnTypeParameter(Scope *S, bool Typename, bool Ellipsis, + SourceLocation EllipsisLoc, SourceLocation KeyLoc, IdentifierInfo *ParamName, SourceLocation ParamNameLoc, |