[clang] [clang] Implement CWG2428 "Deprecating a concept" (PR #92295)
Vlad Serebrennikov via cfe-commits
cfe-commits at lists.llvm.org
Wed May 15 13:35:07 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
----------------
Endilll wrote:
I added test with alternative attribute placing.
> It would also be good to have a test explicitly showing that we reject non-C++-style attributes.
It's not possible to write such a test, because we accept `deprecated` in more spellings than just C++11 one.
https://github.com/llvm/llvm-project/pull/92295
More information about the cfe-commits
mailing list