blob: 53c1bdc34dcd333751cb3894e7a8dc2a5ad90190 [file] [log] [blame]
// RUN: %check_clang_tidy %s bugprone-reserved-identifier %t
// in C, double underscores are fine except at the beginning
void foo__();
void f__o__o();
void f_________oo();
void __foo();
// CHECK-MESSAGES: :[[@LINE-1]]:6: warning: declaration uses identifier '__foo', which is a reserved identifier [bugprone-reserved-identifier]
// CHECK-FIXES: {{^}}void foo();{{$}}