[clang] [clang] Implement CWG2428 "Deprecating a concept" (PR #92295)
Shafik Yaghmour via cfe-commits
cfe-commits at lists.llvm.org
Thu May 16 11:36:56 PDT 2024
================
@@ -167,9 +167,11 @@ Parser::DeclGroupPtrTy Parser::ParseTemplateDeclarationOrSpecialization(
LastParamListWasEmpty);
// Parse the actual template declaration.
- if (Tok.is(tok::kw_concept))
- return Actions.ConvertDeclToDeclGroup(
- ParseConceptDefinition(TemplateInfo, DeclEnd));
+ if (Tok.is(tok::kw_concept)) {
+ Decl *ConceptDecl = ParseConceptDefinition(TemplateInfo, DeclEnd);
+ ParsingTemplateParams.complete(ConceptDecl);
----------------
shafik wrote:
Curious, why do we need this?
https://github.com/llvm/llvm-project/pull/92295
More information about the cfe-commits
mailing list