1// RUN: %check_clang_tidy %s readability-isolate-declaration %t
2
3void c_specific(void) {
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

source code of clang-tools-extra/test/clang-tidy/checkers/readability/isolate-declaration.c