Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | [c++20] P1143R2: Add support for the C++20 'constinit' keyword. | Richard Smith | 2019-09-04 | 1 | -2/+36 |
| | | | | | | | | | | | | | This is mostly the same as the [[clang::require_constant_initialization]] attribute, but has a couple of additional syntactic and semantic restrictions. In passing, I added a warning for the attribute form being added after we have already seen the initialization of the variable (but before we see the definition); that case previously slipped between the cracks and the attribute was silently ignored. llvm-svn: 370972 | ||||
* | [c++20] P0780R2: Support pack-expansion of init-captures. | Richard Smith | 2019-05-21 | 1 | -0/+15 |
This permits an init-capture to introduce a new pack: template<typename ...T> auto x = [...a = T()] { /* a is a pack */ }; To support this, the mechanism for allowing ParmVarDecls to be packs has been extended to support arbitrary local VarDecls. llvm-svn: 361300 |