File tree Expand file tree Collapse file tree 3 files changed +8
-3
lines changed Expand file tree Collapse file tree 3 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -1457,4 +1457,4 @@ refs/tags/swift-DEVELOPMENT-SNAPSHOT-2019-08-02-a: ddd2b2976aa9bfde5f20fe37f6bd2
1457
1457
refs/tags/swift-DEVELOPMENT-SNAPSHOT-2019-08-03-a: 171cc166f2abeb5ca2a4003700a8a78a108bd300
1458
1458
refs/heads/benlangmuir-patch-1: baaebaf39d52f3bf36710d4fe40cf212e996b212
1459
1459
refs/heads/i-do-redeclare: 8c4e6d5de5c1e3f0a2cedccf319df713ea22c48e
1460
- refs/heads/master-rebranch: 0a6f902442b661c91b12f675a1a1513588d8b940
1460
+ refs/heads/master-rebranch: 4fda7ca8ef3126a43dde2575e3cb2cc3004f34ea
Original file line number Diff line number Diff line change @@ -2014,10 +2014,12 @@ class ReferencedTypeFinder : public TypeVisitor<ReferencedTypeFinder> {
2014
2014
}
2015
2015
2016
2016
void visitNameAliasType (NameAliasType *aliasTy) {
2017
- if (aliasTy->getDecl ()->hasClangNode ())
2017
+ if (aliasTy->getDecl ()->hasClangNode () &&
2018
+ !aliasTy->getDecl ()->isCompatibilityAlias ()) {
2018
2019
Callback (*this , aliasTy->getDecl ());
2019
- else
2020
+ } else {
2020
2021
visit (aliasTy->getSinglyDesugaredType ());
2022
+ }
2021
2023
}
2022
2024
2023
2025
void visitParenType (ParenType *parenTy) {
Original file line number Diff line number Diff line change @@ -24,6 +24,9 @@ import VersionedFMWK
24
24
// CHECK-NEXT: - (nullable instancetype)initFormerlyFailableValue:(NSInteger)value OBJC_DESIGNATED_INITIALIZER;
25
25
} // CHECK-NEXT: @end
26
26
27
+ // Make sure we use forward declarations like we would for non-versioned names.
28
+ // CHECK: @class InnerClass;
29
+
27
30
// CHECK-LABEL: @interface UsesNestedClass
28
31
@objc class UsesNestedClass : NSObject {
29
32
// CHECK-NEXT: - (InnerClass * _Nullable)foo SWIFT_WARN_UNUSED_RESULT;
You can’t perform that action at this time.
0 commit comments