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__();
6 void f__o__o();
7 void f_________oo();
8 void __foo();
9 // CHECK-MESSAGES: :[[@LINE-1]]:6: warning: declaration uses identifier '__foo', which is a reserved identifier [bugprone-reserved-identifier]
10 // CHECK-FIXES: {{^}}void foo();{{$}}
11