File tree 4 files changed +9
-12
lines changed
4 files changed +9
-12
lines changed Original file line number Diff line number Diff line change @@ -17,15 +17,8 @@ namespace clang::tidy::linuxkernel {
17
17
// / linux/err.h. Also checks to see if code uses the results from functions that
18
18
// / directly return a value from one of these error functions.
19
19
// /
20
- // / This is important in the Linux kernel because ERR_PTR, PTR_ERR, IS_ERR,
21
- // / IS_ERR_OR_NULL, ERR_CAST, and PTR_ERR_OR_ZERO return values must be checked,
22
- // / since positive pointers and negative error codes are being used in the same
23
- // / context. These functions are marked with
24
- // / __attribute__((warn_unused_result)), but some kernel versions do not have
25
- // / this warning enabled for clang.
26
- // /
27
20
// / For the user-facing documentation see:
28
- // / http://clang.llvm.org/extra/clang-tidy/checks/linuxkernel/must-use -errs.html
21
+ // / http://clang.llvm.org/extra/clang-tidy/checks/linuxkernel/must-check -errs.html
29
22
class MustCheckErrsCheck : public ClangTidyCheck {
30
23
public:
31
24
MustCheckErrsCheck (StringRef Name, ClangTidyContext *Context)
Original file line number Diff line number Diff line change @@ -303,6 +303,10 @@ Miscellaneous
303
303
``--format `` option is specified. Now :program: `clang-apply-replacements `
304
304
applies formatting only with the option.
305
305
306
+ - Fixed the :doc: `linuxkernel-must-check-errs
307
+ <clang-tidy/checks/linuxkernel/must-check-errs>` documentation to consistently
308
+ use the check's proper name.
309
+
306
310
Improvements to include-fixer
307
311
-----------------------------
308
312
Original file line number Diff line number Diff line change 1
- .. title :: clang-tidy - linuxkernel-must-use -errs
1
+ .. title :: clang-tidy - linuxkernel-must-check -errs
2
2
3
- linuxkernel-must-use -errs
4
- =========================
3
+ linuxkernel-must-check -errs
4
+ ===========================
5
5
6
6
Checks Linux kernel code to see if it uses the results from the functions in
7
7
``linux/err.h ``. Also checks to see if code uses the results from functions that
Original file line number Diff line number Diff line change @@ -233,7 +233,7 @@ Clang-Tidy Checks
233
233
:doc: `hicpp-multiway-paths-covered <hicpp/multiway-paths-covered >`,
234
234
:doc: `hicpp-no-assembler <hicpp/no-assembler >`,
235
235
:doc: `hicpp-signed-bitwise <hicpp/signed-bitwise >`,
236
- :doc: `linuxkernel-must-use -errs <linuxkernel/must-use -errs >`,
236
+ :doc: `linuxkernel-must-check -errs <linuxkernel/must-check -errs >`,
237
237
:doc: `llvm-header-guard <llvm/header-guard >`,
238
238
:doc: `llvm-include-order <llvm/include-order >`, "Yes"
239
239
:doc: `llvm-namespace-comment <llvm/namespace-comment >`,
You can’t perform that action at this time.
0 commit comments