14 lines · plain
1.. title:: clang-tidy - objc-dealloc-in-category2 3objc-dealloc-in-category4========================5 6Finds implementations of ``-dealloc`` in Objective-C categories. The category7implementation will override any ``-dealloc`` in the class implementation,8potentially causing issues.9 10Classes implement ``-dealloc`` to perform important actions to deallocate11an object. If a category on the class implements ``-dealloc``, it will12override the class's implementation and unexpected deallocation behavior13may occur.14