mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[cxx-interop] Allow virtual methods to be renamed with swift_name
This commit is contained in:
@@ -2125,6 +2125,8 @@ clang::CXXMethodDecl *SwiftDeclSynthesizer::synthesizeCXXForwardingMethod(
|
||||
// convention.
|
||||
newMethod->addAttr(clang::CFReturnsRetainedAttr::CreateImplicit(clangCtx));
|
||||
}
|
||||
if (auto swiftNameAttr = method->getAttr<clang::SwiftNameAttr>())
|
||||
newMethod->addAttr(swiftNameAttr->clone(clangCtx));
|
||||
|
||||
llvm::SmallVector<clang::ParmVarDecl *, 4> params;
|
||||
for (size_t i = 0; i < method->getNumParams(); ++i) {
|
||||
|
||||
Reference in New Issue
Block a user