modernize-redundant-void-arg¶
查找并移除冗余的 void 参数列表。
- 示例
初始代码
应用修复后的代码
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() {}