feat: add tidyfox-explicit-thisptr

Enforces explicit usage of the thisptr unconditionally
This commit is contained in:
outfoxxed 2023-10-27 03:10:01 -07:00
parent f5c43c4fb4
commit cb4ae697f7
Signed by: outfoxxed
GPG key ID: 4C88A185FB89301E
5 changed files with 50 additions and 4 deletions

View file

@ -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>