jade
6b0020749d
This brings in infrastructure for developing new custom clang-tidy lints
and refactors for Lix.
Change-Id: I3df5f5855712ab4f97d4e84d771e5e818f81f881
18 lines
552 B
C++
18 lines
552 B
C++
#include <clang-tidy/ClangTidyModule.h>
|
|
#include <clang-tidy/ClangTidyModuleRegistry.h>
|
|
#include "HasPrefixSuffix.hh"
|
|
|
|
namespace nix::clang_tidy {
|
|
using namespace clang;
|
|
using namespace clang::tidy;
|
|
|
|
class NixClangTidyChecks : public ClangTidyModule {
|
|
public:
|
|
void addCheckFactories(ClangTidyCheckFactories &CheckFactories) override {
|
|
CheckFactories.registerCheck<HasPrefixSuffixCheck>("nix-hasprefixsuffix");
|
|
}
|
|
};
|
|
|
|
static ClangTidyModuleRegistry::Add<NixClangTidyChecks> X("nix-module", "Adds nix specific checks");
|
|
};
|