11 lines · c
1// RUN: %check_clang_tidy %s bugprone-reserved-identifier %t2 3// in C, double underscores are fine except at the beginning4 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