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