================
@@ -291,6 +292,13 @@ static void ProcessAPINotes(Sema &S, Decl *D,
});
}
+ // swift_safety
+ if (auto SafetyKind = Info.getSwiftSafety();
+ SafetyKind != api_notes::SwiftSafetyKind::None)
+ D->addAttr(SwiftAttrAttr::Create(
+ S.Context,
+ SafetyKind == api_notes::SwiftSafetyKind::Safe ? "safe" : "unsafe"));
----------------
Xazax-hun wrote:
Indeed, with nullability one can override any annotations with unspecified. I
will update this PR to match that semantics.
https://github.com/llvm/llvm-project/pull/157506
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits