File tree Expand file tree Collapse file tree 3 files changed +13
-2
lines changed
Inputs/custom-modules/objc_implementation Expand file tree Collapse file tree 3 files changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -2845,7 +2845,7 @@ static bool excludeForObjCImplementation(const ValueDecl *VD) {
2845
2845
return true ;
2846
2846
// Exclude overrides in an @_objcImplementation extension; the decl they're
2847
2847
// overriding is declared elsewhere.
2848
- if (VD->isImplicit () && VD-> getOverriddenDecl ()) {
2848
+ if (VD->getOverriddenDecl ()) {
2849
2849
auto ED = dyn_cast<ExtensionDecl>(VD->getDeclContext ());
2850
2850
if (ED && ED->isObjCImplementation ())
2851
2851
return true ;
Original file line number Diff line number Diff line change 6
6
7
7
@end
8
8
9
+ @interface ObjCClass2 : NSObject
10
+
11
+ @end
12
+
9
13
void CImplFunc (void );
Original file line number Diff line number Diff line change @@ -30,11 +30,18 @@ extension ObjCClass {
30
30
// Implicit `override init()` to override superclass
31
31
32
32
// NEGATIVE-NOT: )swiftMethod{{ }}
33
- @objc func swiftMethod( ) -> Any ? { nil }
33
+ @objc public func swiftMethod( ) -> Any ? { nil }
34
34
35
35
// NEGATIVE-NOT: )privateMethod{{ }}
36
36
@objc private func privateMethod( ) -> Any ? { nil }
37
37
}
38
38
39
+ // Has no contents that need to be printed
40
+ // NEGATIVE-NOT: ObjCClass2
41
+ @_objcImplementation extension ObjCClass2 {
42
+ // NEGATIVE-NOT: )init{{ }}
43
+ public override init ( ) { }
44
+ }
45
+
39
46
@_cdecl ( " CImplFunc " ) @_objcImplementation func CImplFunc( ) { }
40
47
// NEGATIVE-NOT: CImplFunc(
You can’t perform that action at this time.
0 commit comments