feat: add tidyfox-explicit-thisptr
Enforces explicit usage of the thisptr unconditionally
This commit is contained in:
parent
f5c43c4fb4
commit
cb4ae697f7
5 changed files with 50 additions and 4 deletions
|
@ -3,11 +3,15 @@
|
|||
#include <clang-tidy/ClangTidyModule.h>
|
||||
#include <clang-tidy/ClangTidyModuleRegistry.h>
|
||||
|
||||
#include "explicit_thisptr.hpp"
|
||||
|
||||
namespace clang::tidy::tidyfox {
|
||||
|
||||
class TidyfoxClangTidyModule: public ClangTidyModule {
|
||||
public:
|
||||
void addCheckFactories([[maybe_unused]] ClangTidyCheckFactories& check_factories) override {}
|
||||
void addCheckFactories(ClangTidyCheckFactories& check_factories) override {
|
||||
check_factories.registerCheck<ExplicitThisptrCheck>("tidyfox-explicit-thisptr");
|
||||
}
|
||||
};
|
||||
|
||||
static const ClangTidyModuleRegistry::Add<TidyfoxClangTidyModule>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue