mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[SE-0497] Implement @export attribute syntax
Implement the @export(implementation) and @export(interface) attributes to replace @_alwaysEmitIntoClient and @_neverEmitIntoClient. Provide a warning + Fix-It to start staging out the very-new @_neverEmitIntoClient. We'll hold off on pushing folks toward @_alwaysEmitIntoClient for a little longer.
This commit is contained in:
@@ -1764,7 +1764,7 @@ SDKContext::shouldIgnore(Decl *D, const Decl* Parent) const {
|
||||
// Exclude decls with @_alwaysEmitIntoClient if we are checking ABI.
|
||||
// These decls are considered effectively public because they are usable
|
||||
// from inline, so we have to manually exclude them here.
|
||||
if (D->getAttrs().hasAttribute<AlwaysEmitIntoClientAttr>())
|
||||
if (D->isAlwaysEmittedIntoClient())
|
||||
return true;
|
||||
} else {
|
||||
if (D->isPrivateSystemDecl(false))
|
||||
|
||||
Reference in New Issue
Block a user