[clang] [clang] Implement CWG2428 "Deprecating a concept" (PR #92295)

Vlad Serebrennikov via cfe-commits cfe-commits at lists.llvm.org
Thu May 16 05:54:43 PDT 2024


================
@@ -316,7 +318,8 @@ Parser::ParseConceptDefinition(const ParsedTemplateInfo &TemplateInfo,
   const IdentifierInfo *Id = Result.Identifier;
   SourceLocation IdLoc = Result.getBeginLoc();
 
-  DiagnoseAndSkipCXX11Attributes();
+  ParsedAttributes Attrs(AttrFactory);
+  MaybeParseAttributes(PAKM_GNU | PAKM_Declspec | PAKM_CXX11, Attrs);
----------------
Endilll wrote:

I checked that `deprecated` is supported by `__declspec` syntax https://learn.microsoft.com/en-us/cpp/cpp/declspec?view=msvc-170, but `__declspec` itself is not allowed anywhere in concept definition. I'll remove `PAKM_Declspec` then.

https://github.com/llvm/llvm-project/pull/92295


More information about the cfe-commits mailing list