mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Remove support for Swift 3 @objc inference.
Obsolete the `-enable-swift3-objc-inference` option and related options by removing support for inferring `@objc` attributes using Swift 3 rules. Automated migration from Swift 3 has not been supported by the compiler for many years.
This commit is contained in:
@@ -1775,7 +1775,6 @@ ObjCAttr::ObjCAttr(SourceLoc atLoc, SourceRange baseRange,
|
||||
}
|
||||
|
||||
Bits.ObjCAttr.ImplicitName = false;
|
||||
Bits.ObjCAttr.Swift3Inferred = false;
|
||||
}
|
||||
|
||||
ObjCAttr *ObjCAttr::create(ASTContext &Ctx, llvm::Optional<ObjCSelector> name,
|
||||
@@ -1853,7 +1852,6 @@ SourceLoc ObjCAttr::getRParenLoc() const {
|
||||
|
||||
ObjCAttr *ObjCAttr::clone(ASTContext &context) const {
|
||||
auto attr = new (context) ObjCAttr(getName(), isNameImplicit());
|
||||
attr->setSwift3Inferred(isSwift3Inferred());
|
||||
attr->setAddedByAccessNote(getAddedByAccessNote());
|
||||
return attr;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user