| // RUN: clang-tidy -checks=-*,modernize-redundant-void-arg %s -- -x c | count 0 |
| typedef unsigned int my_uint; |
| // A function taking void and returning a pointer to function taking void |
| int (*returns_fn_void_int(void))(void); |
| typedef int (*returns_fn_void_int_t(void))(void); |
| int (*returns_fn_void_int(void))(void) { |
| // A function taking void and returning a pointer to a function taking void |
| // and returning a pointer to a function taking void and returning void. |
| void (*(*returns_fn_returns_fn_void_void(void))(void))(void); |
| typedef void (*(*returns_fn_returns_fn_void_void_t(void))(void))(void); |
| void (*(*returns_fn_returns_fn_void_void(void))(void))(void) { |
| typedef void (function_ptr)(void); |