@@ -760,37 +760,35 @@ struct ClassImpl : ReflectionMirrorImpl {
760760#if SWIFT_OBJC_INTEROP
761761// Implementation for ObjC classes.
762762struct ObjCClassImpl : ClassImpl {
763- intptr_t count () {
763+ intptr_t count () override {
764764 // ObjC makes no guarantees about the state of ivars, so we can't safely
765765 // introspect them in the general case.
766766 return 0 ;
767767 }
768-
769- intptr_t childOffset (intptr_t i) {
768+
769+ intptr_t childOffset (intptr_t i) override {
770770 swift::crash (" Cannot get children of Objective-C objects." );
771771 }
772772
773773 const FieldType childMetadata (intptr_t i, const char **outName,
774- void (**outFreeFunc)(const char *)) {
774+ void (**outFreeFunc)(const char *)) override {
775775 swift::crash (" Cannot get children of Objective-C objects." );
776776 }
777777
778778 AnyReturn subscript (intptr_t i, const char **outName,
779- void (**outFreeFunc)(const char *)) {
779+ void (**outFreeFunc)(const char *)) override {
780780 swift::crash (" Cannot get children of Objective-C objects." );
781781 }
782782
783- virtual intptr_t recursiveCount () {
784- return 0 ;
785- }
783+ virtual intptr_t recursiveCount () override { return 0 ; }
786784
787- virtual intptr_t recursiveChildOffset (intptr_t index) {
785+ virtual intptr_t recursiveChildOffset (intptr_t index) override {
788786 swift::crash (" Cannot get children of Objective-C objects." );
789787 }
790- virtual const FieldType recursiveChildMetadata ( intptr_t index,
791- const char **outName,
792- void (**outFreeFunc)( const char *))
793- {
788+
789+ virtual const FieldType
790+ recursiveChildMetadata ( intptr_t index, const char **outName,
791+ void (**outFreeFunc)( const char *)) override {
794792 swift::crash (" Cannot get children of Objective-C objects." );
795793 }
796794};
0 commit comments