-
- Downloads
Concepts: Create space for requires-clause in TemplateParameterList; NFC
Summary: Space for storing the //constraint-expression// of the //requires-clause// associated with a `TemplateParameterList` is arranged by taking a bit out of the `NumParams` field for the purpose of determining whether there is a //requires-clause// or not, and by adding to the trailing objects tied to the `TemplateParameterList`. An accessor is provided. An appropriate argument is supplied to `TemplateParameterList::Create` at the various call sites. Serialization changes will addressed as the Concepts implementation becomes more solid. Drive-by fix: This change also replaces the custom `FixedSizeTemplateParameterListStorage` implementation with one that follows the interface provided by `llvm::TrailingObjects`. Reviewers: aaron.ballman, faisalv, rsmith Subscribers: cfe-commits, nwilson Differential Revision: https://reviews.llvm.org/D19322 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@276069 91177308-0d34-0410-b5e6-96231b3b80d8
Showing
- include/clang/AST/DeclTemplate.h 49 additions, 27 deletionsinclude/clang/AST/DeclTemplate.h
- lib/AST/ASTContext.cpp 6 additions, 1 deletionlib/AST/ASTContext.cpp
- lib/AST/ASTImporter.cpp 11 additions, 1 deletionlib/AST/ASTImporter.cpp
- lib/AST/DeclTemplate.cpp 18 additions, 10 deletionslib/AST/DeclTemplate.cpp
- lib/Sema/SemaLambda.cpp 1 addition, 1 deletionlib/Sema/SemaLambda.cpp
- lib/Sema/SemaTemplate.cpp 2 additions, 3 deletionslib/Sema/SemaTemplate.cpp
- lib/Sema/SemaTemplateDeduction.cpp 2 additions, 2 deletionslib/Sema/SemaTemplateDeduction.cpp
- lib/Sema/SemaTemplateInstantiateDecl.cpp 5 additions, 1 deletionlib/Sema/SemaTemplateInstantiateDecl.cpp
- lib/Serialization/ASTReader.cpp 2 additions, 1 deletionlib/Serialization/ASTReader.cpp
- lib/Serialization/ASTWriter.cpp 1 addition, 0 deletionslib/Serialization/ASTWriter.cpp
Loading
Please register or sign in to comment