[clang-tidy][docs] Fix broken redundant-void-arg documentation. NFC. (#212692)
This commit is contained in:
parent
f193d19d21
commit
b2b5c13f69
1 changed files with 9 additions and 8 deletions
|
|
@ -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() {}` |
|
||||
|
|
|
|||
Loading…
Reference in a new issue