1 | // RUN: %check_clang_tidy %s bugprone-reserved-identifier %t |
---|---|
2 | |
3 | // in C, double underscores are fine except at the beginning |
4 | |
5 | void foo__(void); |
6 | void f__o__o(void); |
7 | void f_________oo(void); |
8 | void __foo(void); |
9 | // CHECK-MESSAGES: :[[@LINE-1]]:6: warning: declaration uses identifier '__foo', which is a reserved identifier [bugprone-reserved-identifier] |
10 | // CHECK-FIXES: {{^}}void foo(void);{{$}} |
11 |