blob: 891f6be6371426a3ed523311f349431e23d7ef4f [file] [log] [blame]
.. title:: clang-tidy - readability-convert-member-functions-to-static
readability-convert-member-functions-to-static
==============================================
Finds non-static member functions that can be made ``static``
because the functions don't use ``this``.
After applying modifications as suggested by the check, runnnig the check again
might find more opportunities to mark member functions ``static``.
After making a member function ``static``, you might want to run the check
`readability-static-accessed-through-instance` to replace calls like
``Instance.method()`` by ``Class::method()``.