[clang] [clang] add unnamed_addr function attribute (PR #92499)

via cfe-commits cfe-commits at lists.llvm.org
Fri May 17 08:57:44 PDT 2024


================
@@ -1944,6 +1944,13 @@ def ReturnsTwice : InheritableAttr {
   let SimpleHandler = 1;
 }
 
+def UnnamedAddr : InheritableAttr {
+  let Spellings = [Clang<"unnamed_addr">];
+  let Subjects = SubjectList<[Function]>;
+  let Documentation = [Undocumented];
----------------
Sirraide wrote:

I think for new attributes, we generally do prefer to document them. This attribute especially seems like it would benefit from documentation, so please add some for it. Doesn’t have to be much, just a sentence or two explaining that it adds the LLVM attribute and an example would be enough imo.

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


More information about the cfe-commits mailing list