Go to the documentation of this file.
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.");
Checks Linux kernel code to see if it uses the results from the functions in linux/err....
volatile int LinuxKernelModuleAnchorSource
void addCheckFactories(ClangTidyCheckFactories &CheckFactories) override
Implement this function in order to register all CheckFactories belonging to this module.
A collection of ClangTidyCheckFactory instances.
===– Representation.cpp - ClangDoc Representation --------—*- C++ -*-===//
This module is for checks specific to the Linux kernel.
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.
void registerCheck(llvm::StringRef CheckName)
Registers the CheckType with the name Name.