clang-tools 22.0.0git
|
Checks Linux kernel code to see if it uses the results from the functions in linux/err.h. More...
#include <MustCheckErrsCheck.h>
Public Member Functions | |
MustCheckErrsCheck (StringRef Name, ClangTidyContext *Context) | |
void | registerMatchers (ast_matchers::MatchFinder *Finder) override |
void | check (const ast_matchers::MatchFinder::MatchResult &Result) override |
Checks Linux kernel code to see if it uses the results from the functions in linux/err.h.
Also checks to see if code uses the results from functions that directly return a value from one of these error functions.
For the user-facing documentation see: https://clang.llvm.org/extra/clang-tidy/checks/linuxkernel/must-check-errs.html
Definition at line 22 of file MustCheckErrsCheck.h.
|
inline |
Definition at line 24 of file MustCheckErrsCheck.h.
|
override |
Definition at line 31 of file MustCheckErrsCheck.cpp.
|
override |
Definition at line 16 of file MustCheckErrsCheck.cpp.