[clang] [APINotes] Upstream Sema logic to apply API Notes to decls (PR #73017)

Saleem Abdulrasool via cfe-commits cfe-commits at lists.llvm.org
Fri Jan 12 09:15:33 PST 2024


================
@@ -2622,6 +2641,31 @@ def SwiftPrivate : InheritableAttr {
   let SimpleHandler = 1;
 }
 
+def SwiftVersioned : Attr {
+  // This attribute has no spellings as it is only ever created implicitly
+  // from API notes.
+  let Spellings = [];
+  let Args = [VersionArgument<"Version">, AttrArgument<"AttrToAdd">,
----------------
compnerd wrote:

I imagine that we cannot change the attribute name?  I think that `Addition` or `AdditionalAttribute` would've been more fitting.

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


More information about the cfe-commits mailing list