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 {
2577
2577
if (!dc)
2578
2578
return nullptr ;
2579
2579
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
-
2591
2580
auto aliasedDecl =
2592
2581
Impl.importDecl (decl->getAliasedNamespace (), getActiveSwiftVersion ());
2593
2582
if (!aliasedDecl)
@@ -4164,6 +4153,17 @@ namespace {
4164
4153
if (!dc)
4165
4154
return nullptr ;
4166
4155
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
+
4167
4167
// Handle cases where 2 CXX methods differ strictly in "constness"
4168
4168
// In such a case append a suffix ("Mutating") to the mutable version
4169
4169
// of the method when importing to swift
You can’t perform that action at this time.
0 commit comments