brintos

brintos / llvm-project-archived public Read only

0
0
Text · 665 B · 59f4632 Raw
16 lines · plain
1.. title:: clang-tidy - readability-convert-member-functions-to-static2 3readability-convert-member-functions-to-static4==============================================5 6Finds non-static member functions that can be made ``static``7because the functions don't use ``this``.8 9After applying modifications as suggested by the check, running the check again10might find more opportunities to mark member functions ``static``.11 12After making a member function ``static``, you might want to run the check13:doc:`readability-static-accessed-through-instance14<../readability/static-accessed-through-instance>` to replace calls like15``Instance.method()`` by ``Class::method()``.16