| 1 |
.. title:: clang-tidy - objc-super-self |
| 2 |
|
| 3 |
objc-super-self |
| 4 |
=============== |
| 5 |
|
| 6 |
Finds invocations of ``-self`` on super instances in initializers of subclasses |
| 7 |
of ``NSObject`` and recommends calling a superclass initializer instead. |
| 8 |
|
| 9 |
Invoking ``-self`` on super instances in initializers is a common programmer |
| 10 |
error when the programmer's original intent is to call a superclass |
| 11 |
initializer. Failing to call a superclass initializer breaks initializer |
| 12 |
chaining and can result in invalid object initialization. |
| 13 |
|