File tree Expand file tree Collapse file tree 1 file changed +11
-11
lines changed Expand file tree Collapse file tree 1 file changed +11
-11
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments