Introduce a new type, PackExpansionType, to capture types that are
pack expansions, e.g. given template<typename... Types> struct tuple; template<typename... Types> struct tuple_of_refs { typedef tuple<Types&...> types; }; the type of the "types" typedef is a PackExpansionType whose pattern is Types&. This commit introduces support for creating pack expansions for template type arguments, as above, but not for any other kind of pack expansion, nor for any form of instantiation. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@122223 91177308-0d34-0410-b5e6-96231b3b80d8
Showing
- include/clang/AST/ASTContext.h 3 additions, 0 deletionsinclude/clang/AST/ASTContext.h
- include/clang/AST/RecursiveASTVisitor.h 8 additions, 0 deletionsinclude/clang/AST/RecursiveASTVisitor.h
- include/clang/AST/Type.h 59 additions, 1 deletioninclude/clang/AST/Type.h
- include/clang/AST/TypeLoc.h 34 additions, 0 deletionsinclude/clang/AST/TypeLoc.h
- include/clang/AST/TypeNodes.def 1 addition, 0 deletionsinclude/clang/AST/TypeNodes.def
- include/clang/Basic/DiagnosticSemaKinds.td 7 additions, 0 deletionsinclude/clang/Basic/DiagnosticSemaKinds.td
- include/clang/Sema/ParsedTemplate.h 3 additions, 1 deletioninclude/clang/Sema/ParsedTemplate.h
- include/clang/Sema/Sema.h 19 additions, 0 deletionsinclude/clang/Sema/Sema.h
- include/clang/Serialization/ASTBitCodes.h 3 additions, 1 deletioninclude/clang/Serialization/ASTBitCodes.h
- lib/AST/ASTContext.cpp 26 additions, 0 deletionslib/AST/ASTContext.cpp
- lib/AST/ASTImporter.cpp 8 additions, 1 deletionlib/AST/ASTImporter.cpp
- lib/AST/TypePrinter.cpp 7 additions, 1 deletionlib/AST/TypePrinter.cpp
- lib/CodeGen/Mangle.cpp 6 additions, 0 deletionslib/CodeGen/Mangle.cpp
- lib/CodeGen/MicrosoftCXXABI.cpp 4 additions, 0 deletionslib/CodeGen/MicrosoftCXXABI.cpp
- lib/Parse/ParseTemplate.cpp 5 additions, 0 deletionslib/Parse/ParseTemplate.cpp
- lib/Sema/SemaTemplate.cpp 6 additions, 0 deletionslib/Sema/SemaTemplate.cpp
- lib/Sema/SemaTemplateDeduction.cpp 6 additions, 0 deletionslib/Sema/SemaTemplateDeduction.cpp
- lib/Sema/SemaTemplateVariadic.cpp 60 additions, 0 deletionslib/Sema/SemaTemplateVariadic.cpp
- lib/Sema/TreeTransform.h 9 additions, 0 deletionslib/Sema/TreeTransform.h
- lib/Serialization/ASTReader.cpp 15 additions, 0 deletionslib/Serialization/ASTReader.cpp
Loading
Please register or sign in to comment