clang-tidy - objc-super-self — Extra Clang Tools 22.1.1 documentation

# Extra Clang Tools 22.1.1 documentation

## clang-tidy - objc-super-self

# objc-super-self

Finds invocations of `-self` on super instances in initializers of subclasses of `NSObject` and recommends calling a superclass initializer instead.

Invoking `-self` on super instances in initializers is a common programmer error when the programmer’s original intent is to call a superclass initializer. Failing to call a superclass initializer breaks initializer chaining and can result in invalid object initialization.