1 // RUN: %check_clang_tidy %s readability-isolate-declaration %t
2
c_specific()3 void c_specific() {
4 void (*signal(int sig, void (*func)(int)))(int);
5 int i = sizeof(struct S { int i; });
6 int j = sizeof(struct T { int i; }), k;
7 // CHECK-MESSAGES: [[@LINE-1]]:3: warning: multiple declarations in a single statement reduces readability
8 // CHECK-FIXES: int j = sizeof(struct T { int i; });
9 // CHECK-FIXES: {{^ }}int k;
10
11 void g(struct U { int i; } s); // One decl
12 void h(struct V { int i; } s), m(int i, ...); // Two decls
13 }
14