clang-tools 22.0.0git
|
This check finds C++ class methods than can be made static because they don't use the 'this' pointer. More...
#include <ConvertMemberFunctionsToStatic.h>
Public Member Functions | |
ConvertMemberFunctionsToStatic (StringRef Name, ClangTidyContext *Context) | |
bool | isLanguageVersionSupported (const LangOptions &LangOpts) const override |
void | registerMatchers (ast_matchers::MatchFinder *Finder) override |
void | check (const ast_matchers::MatchFinder::MatchResult &Result) override |
This check finds C++ class methods than can be made static because they don't use the 'this' pointer.
For the user-facing documentation see: https://clang.llvm.org/extra/clang-tidy/checks/ readability-convert-member-functions-to-static.html
Definition at line 22 of file ConvertMemberFunctionsToStatic.h.
|
inline |
Definition at line 24 of file ConvertMemberFunctionsToStatic.h.
|
override |
Definition at line 134 of file ConvertMemberFunctionsToStatic.cpp.
References clang::tidy::readability::getLocationOfConst().
|
inlineoverride |
Definition at line 26 of file ConvertMemberFunctionsToStatic.h.
|
override |
Definition at line 81 of file ConvertMemberFunctionsToStatic.cpp.