[clang-tools-extra] b2b5c13 - [clang-tidy][docs] Fix broken redundant-void-arg documentation. NFC. (#212692)
via cfe-commits
cfe-commits at lists.llvm.org
Wed Jul 29 00:55:00 PDT 2026
Author: Zeyi Xu
Date: 2026-07-29T15:54:54+08:00
New Revision: b2b5c13f69e4cfcba339967e0c16b06b081b5e2e
URL: https://github.com/llvm/llvm-project/commit/b2b5c13f69e4cfcba339967e0c16b06b081b5e2e
DIFF: https://github.com/llvm/llvm-project/commit/b2b5c13f69e4cfcba339967e0c16b06b081b5e2e.diff
LOG: [clang-tidy][docs] Fix broken redundant-void-arg documentation. NFC. (#212692)
Added:
Modified:
clang-tools-extra/docs/clang-tidy/checks/modernize/redundant-void-arg.md
Removed:
################################################################################
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() {}` |
More information about the cfe-commits
mailing list