14 lines · c
1// RUN: %check_clang_tidy %s readability-isolate-declaration %t2 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 readability8 // CHECK-FIXES: int j = sizeof(struct T { int i; });9 // CHECK-FIXES: int k;10 11 void g(struct U { int i; } s); // One decl12 void h(struct V { int i; } s), m(int i, ...); // Two decls13}14