[OpenACC] Implement 'collapse' for combined constructs.
[llvm-project.git] / clang-tools-extra / docs / clang-tidy / checks / readability / convert-member-functions-to-static.rst
blob641cb83d6df04657cc139e2a5df331f2816e0762
1 .. title:: clang-tidy - readability-convert-member-functions-to-static
3 readability-convert-member-functions-to-static
4 ==============================================
6 Finds non-static member functions that can be made ``static``
7 because the functions don't use ``this``.
9 After applying modifications as suggested by the check, running the check again
10 might find more opportunities to mark member functions ``static``.
12 After making a member function ``static``, you might want to run the check
13 :doc:`readability-static-accessed-through-instance <../readability/static-accessed-through-instance>` to replace calls like
14 ``Instance.method()`` by ``Class::method()``.