This check for clang-tidy looks for function with zero arguments declared as (void) and removes the unnecessary void token.
int foo(void);
becomes
int foo();
The check performs no formatting of the surrounding context but uses the lexer to look for the token sequence "(", "void", ")" in the prototype text. If this sequence of tokens is found, a removal is issued for the void token only.
nit: Remove this and just start namespace clang { (or all three of them) here instead of line 50 below. Then clang::ast_matchers can be replaced with ast_matchers as well.