[clang] [Clang] Add [[clang::diagnose_specializations]] (PR #101469)

Aaron Ballman via cfe-commits cfe-commits at lists.llvm.org
Mon Aug 19 07:31:52 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 applied to class or variable
+templates which should not be specialized by users. This is primarily used to
----------------
AaronBallman wrote:

```suggestion
templates which should not be explicitly specialized by users. This is primarily used to
```

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


More information about the cfe-commits mailing list