I tried to use readability-isolate-declaration check in clang-tidy, but nothing fixed. Example of code from test.cpp file:
void f() { int a = 0, b = 1, c = 2;