9#include "../ClangTidy.h"
10#include "../ClangTidyModule.h"
11#include "../ClangTidyModuleRegistry.h"
15namespace linuxkernel {
22 "linuxkernel-must-check-errs");
27static ClangTidyModuleRegistry::Add<LinuxKernelModule>
28 X(
"linux-module",
"Adds checks specific to the Linux kernel.");
A collection of ClangTidyCheckFactory instances.
void registerCheck(llvm::StringRef CheckName)
Registers the CheckType with the name Name.
A clang-tidy module groups a number of ClangTidyChecks and gives them a prefixed name.
This module is for checks specific to the Linux kernel.
void addCheckFactories(ClangTidyCheckFactories &CheckFactories) override
Implement this function in order to register all CheckFactories belonging to this module.
Checks Linux kernel code to see if it uses the results from the functions in linux/err....
volatile int LinuxKernelModuleAnchorSource