tidyfox/src/lib.cpp
outfoxxed cb4ae697f7
feat: add tidyfox-explicit-thisptr
Enforces explicit usage of the thisptr unconditionally
2023-10-27 03:10:01 -07:00

21 lines
557 B
C++

#include <cstdio>
#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(ClangTidyCheckFactories& check_factories) override {
check_factories.registerCheck<ExplicitThisptrCheck>("tidyfox-explicit-thisptr");
}
};
static const ClangTidyModuleRegistry::Add<TidyfoxClangTidyModule>
X("tidyfox", "outfoxxed's lint collection");
} // namespace clang::tidy::tidyfox