[clang] [Clang] Add a structural_type attribute (PR #247703)

Corentin Jabot via cfe-commits cfe-commits at lists.llvm.org
Fri Dec 4 05:56:41 PST 2026


================
@@ -5103,6 +5103,29 @@ void use() {
   }];
 }
 
+def StructuralTypeDocs : Documentation {
+  let Category = DocCatDecl;
+  let Heading = "structural_type";
+  let Content = [{
+A class with this attribute is exempt from the requirement that the base
+classes and non-static data members of a structural type ([temp.param]) are
----------------
cor3ntin wrote:

Well, temp.param does :D

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


More information about the cfe-commits mailing list