[clang] [Clang] Add [[clang::diagnose_specializations]] (PR #101469)
Nikolas Klauser via cfe-commits
cfe-commits at lists.llvm.org
Thu Aug 1 05:53:12 PDT 2024
================
@@ -975,6 +975,15 @@ Query for this feature with ``__has_attribute(diagnose_if)``.
}];
}
+def DiagnoseSpecializationsDocs : Documentation {
+ let Category = DocCatDecl;
+ let Content = [{
+``clang::diagnose_specializations`` can be appied to class templates which
+should not be specialized by users. This is primarily used to diagnose user
+specializations of standard library type traits.
----------------
philnik777 wrote:
Are users of a non-standard-library not users?
https://github.com/llvm/llvm-project/pull/101469
More information about the cfe-commits
mailing list