1// RUN: %check_clang_tidy %s bugprone-reserved-identifier %t
2
3// in C, double underscores are fine except at the beginning
4
5void foo__(void);
6void f__o__o(void);
7void f_________oo(void);
8void __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

source code of clang-tools-extra/test/clang-tidy/checkers/bugprone/reserved-identifier-c.c