Skip to content

[clang-tidy][docs] Fix broken redundant-void-arg documentation. NFC. - #212692

Merged
zeyi2 merged 1 commit into
llvm:mainfrom
zeyi2:acp/zeyi2/8467922988665655
Jul 29, 2026
Merged

[clang-tidy][docs] Fix broken redundant-void-arg documentation. NFC.#212692
zeyi2 merged 1 commit into
llvm:mainfrom
zeyi2:acp/zeyi2/8467922988665655

Conversation

@zeyi2

@zeyi2 zeyi2 commented Jul 29, 2026

Copy link
Copy Markdown
Member

No description provided.

@zeyi2

zeyi2 commented Jul 29, 2026

Copy link
Copy Markdown
Member Author

Preview looks like this:

image

@zeyi2
zeyi2 marked this pull request as ready for review July 29, 2026 06:46
@zeyi2
zeyi2 requested a review from vbvictor as a code owner July 29, 2026 06:46
@llvmorg-github-actions

llvmorg-github-actions Bot commented Jul 29, 2026

Copy link
Copy Markdown

@llvm/pr-subscribers-clang-tools-extra

@llvm/pr-subscribers-clang-tidy

Author: Zeyi Xu (zeyi2)

Changes

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 --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() {}`              |

@zeyi2
zeyi2 merged commit b2b5c13 into llvm:main Jul 29, 2026
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants