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
6int BadGlobalVariable;
7// CHECK-MESSAGES: :[[@LINE-1]]:5: warning: invalid case style for global variable 'BadGlobalVariable' [readability-identifier-naming]
8// CHECK-FIXES: int g_BadGlobalVariable;
9int g_GoodGlobalVariable;
10
11const int GoodGlobalConstant = 0;
12const int g_IgnoreGlobalConstant = 0;
13

source code of clang-tools-extra/test/clang-tidy/checkers/readability/identifier-naming-empty-options.cpp