1 // RUN: %check_clang_tidy %s readability-identifier-naming %t -- \
2 // RUN:   -config='{CheckOptions: { \
3 // RUN:     readability-identifier-naming.GlobalConstantPrefix: "", \
4 // RUN:     readability-identifier-naming.GlobalVariablePrefix: g_ }}'
5 
6 int BadGlobalVariable;
7 // CHECK-MESSAGES: :[[@LINE-1]]:5: warning: invalid case style for global variable 'BadGlobalVariable' [readability-identifier-naming]
8 // CHECK-FIXES: int g_BadGlobalVariable;
9 int g_GoodGlobalVariable;
10 
11 const int GoodGlobalConstant = 0;
12 const int g_IgnoreGlobalConstant = 0;
13