1 // RUN: %check_clang_tidy %s misc-unused-parameters %t -- \
2 // RUN:   -config="{CheckOptions: [{key: StrictMode, value: true}]}" --
3 
4 // Warn on empty function bodies in StrictMode.
5 namespace strict_mode {
f(int foo)6 void f(int foo) {}
7 // CHECK-MESSAGES: :[[@LINE-1]]:12: warning: parameter 'foo' is unused [misc-unused-parameters]
8 // CHECK-FIXES: {{^}}void f(int  /*foo*/) {}{{$}}
9 class E {
10   int i;
11 
12 public:
E(int j)13   E(int j) {}
14 // CHECK-MESSAGES: :[[@LINE-1]]:9: warning: parameter 'j' is unused
15 // CHECK-FIXES: {{^}}  E(int  /*j*/) {}{{$}}
16 };
17 class F {
18   int i;
19 
20 public:
F(int j)21   F(int j) : i() {}
22 // CHECK-MESSAGES: :[[@LINE-1]]:9: warning: parameter 'j' is unused
23 // CHECK-FIXES: {{^}}  F(int  /*j*/) : i() {}{{$}}
24 };
25 }
26