xref: /llvm-project/clang-tools-extra/test/clang-tidy/checkers/misc/const-correctness-wrong-config.cpp (revision 1af159e98c23a293c103e1f548866488126ed6f6)
146ae26e7SJonas Toth // RUN: %check_clang_tidy %s misc-const-correctness %t \
246ae26e7SJonas Toth // RUN: -config='{CheckOptions: \
3*1af159e9SPiotr Zegar // RUN:  {"misc-const-correctness.AnalyzeValues": false,\
4*1af159e9SPiotr Zegar // RUN:   "misc-const-correctness.AnalyzeReferences": false}\
5*1af159e9SPiotr Zegar // RUN:  }' -- -fno-delayed-template-parsing
646ae26e7SJonas Toth 
746ae26e7SJonas Toth // CHECK-MESSAGES: warning: The check 'misc-const-correctness' will not perform any analysis because both 'AnalyzeValues' and 'AnalyzeReferences' are false. [clang-tidy-config]
846ae26e7SJonas Toth 
g()946ae26e7SJonas Toth void g() {
1046ae26e7SJonas Toth   int p_local0 = 42;
1146ae26e7SJonas Toth   // CHECK-FIXES-NOT: int const p_local0 = 42;
1246ae26e7SJonas Toth }
13