gecko-dev/tools/clang-tidy/test/readability-isolate-declara...

7 строки
229 B
C++

void f() {
int * pointer = nullptr, value = 42, * const const_ptr = &value;
// This declaration will be diagnosed and transformed into:
// int * pointer = nullptr;
// int value = 42;
// int * const const_ptr = &value;
}