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

via cfe-commits cfe-commits at lists.llvm.org
Thu May 16 00:34:22 PDT 2024


================
@@ -45,6 +45,34 @@ void fallthrough(int n) {
 #endif
 }
 
+namespace cwg2428 { // cwg2428: 19
+#if __cplusplus >= 202002L
+template <typename>
+concept C [[deprecated]] = true; // #C
----------------
cor3ntin wrote:

As it turns out, GCC does support GNU-style attributes https://compiler-explorer.com/z/dccfdofKf
We should probably follow suite. Sorry for the confusion Vlad
(Which means you need to add tests + support for that)

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


More information about the cfe-commits mailing list