xref: /llvm-project/clang-tools-extra/docs/clang-tidy/checks/objc/dealloc-in-category.rst (revision 6e566bc5523f743bc34a7e26f050f1f2b4d699a8)
1.. title:: clang-tidy - objc-dealloc-in-category
2
3objc-dealloc-in-category
4========================
5
6Finds implementations of ``-dealloc`` in Objective-C categories. The category
7implementation will override any ``-dealloc`` in the class implementation,
8potentially causing issues.
9
10Classes implement ``-dealloc`` to perform important actions to deallocate
11an object. If a category on the class implements ``-dealloc``, it will
12override the class's implementation and unexpected deallocation behavior
13may occur.
14