[clang-tools-extra] [clang-tidy][docs] Fix broken redundant-void-arg documentation. NFC. (PR #212692)
via cfe-commits
cfe-commits at lists.llvm.org
Tue Jul 28 23:47:19 PDT 2026
llvmorg-github-actions[bot] wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-clang-tidy
Author: Zeyi Xu (zeyi2)
<details>
<summary>Changes</summary>
---
Full diff: https://github.com/llvm/llvm-project/pull/212692.diff
1 Files Affected:
- (modified) clang-tools-extra/docs/clang-tidy/checks/modernize/redundant-void-arg.md (+9-8)
``````````diff
diff --git a/clang-tools-extra/docs/clang-tidy/checks/modernize/redundant-void-arg.md b/clang-tools-extra/docs/clang-tidy/checks/modernize/redundant-void-arg.md
index a841e0179dfc4..e886b85b21239 100644
--- a/clang-tools-extra/docs/clang-tidy/checks/modernize/redundant-void-arg.md
+++ b/clang-tools-extra/docs/clang-tidy/checks/modernize/redundant-void-arg.md
@@ -7,11 +7,12 @@ Finds and removes redundant `void` argument lists.
Works in C++ and in C23 and up.
Examples:
-: | Initial code | Code with applied fixes |
- | --------------------------------- | ------------------------- |
- | `int f(void);` | `int f();` |
- | `int (*f(void))(void);` | `int (*f())();` |
- | `typedef int (*f_t(void))(void);` | `typedef int (*f_t())();` |
- | `void (C::*p)(void);` | `void (C::*p)();` |
- | `C::C(void) {}` | `C::C() {}` |
- | `C::~C(void) {}` | `C::~C() {}` |
+
+| Initial code | Code with applied fixes |
+| --------------------------------- | ------------------------- |
+| `int f(void);` | `int f();` |
+| `int (*f(void))(void);` | `int (*f())();` |
+| `typedef int (*f_t(void))(void);` | `typedef int (*f_t())();` |
+| `void (C::*p)(void);` | `void (C::*p)();` |
+| `C::C(void) {}` | `C::C() {}` |
+| `C::~C(void) {}` | `C::~C() {}` |
``````````
</details>
https://github.com/llvm/llvm-project/pull/212692
More information about the cfe-commits
mailing list