[clang-tools-extra] [clang-tidy] Add ZeroOnly integer literal mode to argument-comment (PR #237890)
Zeyi Xu via cfe-commits
cfe-commits at lists.llvm.org
Sun Nov 8 05:16:02 PST 2026
================
@@ -188,6 +188,12 @@ infrastructure are described first, followed by tool-specific sections.
<clang-tidy/checks/bugprone/argument-comment>` check by adding the
{option}`IgnoredParameterNames` option to skip parameters by name.
+- Improved {doc}`bugprone-argument-comment
----------------
zeyi2 wrote:
Please merge with previous entry:
```
- Improved {doc}`bugprone-argument-comment
<clang-tidy/checks/bugprone/argument-comment>` check by:
- Add the {option}`IgnoredParameterNames` option to skip parameters by name.
- Add the `ZeroOnly` value to the {option}`CommentIntegerLiterals` option, which only
adds comments to integer literals with the value zero. The option still
accepts `true` and `false`.
```
https://github.com/llvm/llvm-project/pull/237890
More information about the cfe-commits
mailing list