[clang] aligned attribute doc (PR #195278)

Kartik Ohlan via cfe-commits cfe-commits at lists.llvm.org
Sat May 2 08:11:35 PDT 2026


================
@@ -10000,3 +9983,40 @@ different languages to coexist on the same call stack while each interpreting
 exceptions according to their own rules.
   }];
 }
+
+def AlignedDocs : Documentation {
+  let Category = DocCatDecl;
+  let Heading = "aligned";
+  let Content = [{
+The ``aligned`` attribute specifies a minimum alignment (in bytes) for a 
+variable, structure field, or type definition. The attribute takes an 
+optional integer constant expression that must evaluate to a power of two.
----------------
Ko496-glitch wrote:

i have added the non-negative marker and 0 has no effect

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


More information about the cfe-commits mailing list