Skip to content

Commit 402ef5b

Browse files
committed
Moved to importFunction
1 parent 7282c64 commit 402ef5b

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

lib/ClangImporter/ImportDecl.cpp

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2577,17 +2577,6 @@ namespace {
25772577
if (!dc)
25782578
return nullptr;
25792579

2580-
bool isOperator = decl->getDeclName().getNameKind() ==
2581-
clang::DeclarationName::CXXOperatorName;
2582-
bool isNonSubscriptOperator =
2583-
isOperator && (decl->getDeclName().getCXXOverloadedOperator() !=
2584-
clang::OO_Subscript);
2585-
2586-
// For now, we don't support non-subscript operators which are templated
2587-
if (isNonSubscriptOperator && decl->isTemplated()) {
2588-
return nullptr;
2589-
}
2590-
25912580
auto aliasedDecl =
25922581
Impl.importDecl(decl->getAliasedNamespace(), getActiveSwiftVersion());
25932582
if (!aliasedDecl)
@@ -4164,6 +4153,17 @@ namespace {
41644153
if (!dc)
41654154
return nullptr;
41664155

4156+
bool isOperator = decl->getDeclName().getNameKind() ==
4157+
clang::DeclarationName::CXXOperatorName;
4158+
bool isNonSubscriptOperator =
4159+
isOperator && (decl->getDeclName().getCXXOverloadedOperator() !=
4160+
clang::OO_Subscript);
4161+
4162+
// For now, we don't support non-subscript operators which are templated
4163+
if (isNonSubscriptOperator && decl->isTemplated()) {
4164+
return nullptr;
4165+
}
4166+
41674167
// Handle cases where 2 CXX methods differ strictly in "constness"
41684168
// In such a case append a suffix ("Mutating") to the mutable version
41694169
// of the method when importing to swift

0 commit comments

Comments
 (0)