When writing C++ code within the CLion IDE one of the Clang-Tidy messages that comes up is this function can be made static. Is there any benefit (mainly performance?) for making this function static, if it won't be used outside the class and thus, removes one of the main uses of static functions.
Danke
thispointer will be passed to astaticfunction, so technically you save performancethisnor does it access/mutate any data members) then the function should either bestaticor often a free-function within anamespace