SE-0193: Rename @_inlineable to @inlinable, @_versioned to @usableFromInline

This commit is contained in:
Slava Pestov
2018-03-29 02:55:38 -07:00
parent a00f252ff8
commit e1f50b2d36
240 changed files with 6262 additions and 6258 deletions

View File

@@ -2105,15 +2105,15 @@ swift::createDesignatedInitOverride(TypeChecker &tc,
access = std::min(access, superclassCtor->getFormalAccess());
ctor->setAccess(access);
// Inherit the @_versioned attribute.
if (superclassCtor->getAttrs().hasAttribute<VersionedAttr>()) {
auto *clonedAttr = new (ctx) VersionedAttr(/*implicit=*/true);
// Inherit the @usableFromInline attribute.
if (superclassCtor->getAttrs().hasAttribute<UsableFromInlineAttr>()) {
auto *clonedAttr = new (ctx) UsableFromInlineAttr(/*implicit=*/true);
ctor->getAttrs().add(clonedAttr);
}
// Inherit the @_inlineable attribute.
if (superclassCtor->getAttrs().hasAttribute<InlineableAttr>()) {
auto *clonedAttr = new (ctx) InlineableAttr(/*implicit=*/true);
// Inherit the @inlinable attribute.
if (superclassCtor->getAttrs().hasAttribute<InlinableAttr>()) {
auto *clonedAttr = new (ctx) InlinableAttr(/*implicit=*/true);
ctor->getAttrs().add(clonedAttr);
}