xref: /llvm-project/clang-tools-extra/test/clang-tidy/checkers/misc/const-correctness-wrong-config.cpp (revision 1af159e98c23a293c103e1f548866488126ed6f6)
1 // RUN: %check_clang_tidy %s misc-const-correctness %t \
2 // RUN: -config='{CheckOptions: \
3 // RUN:  {"misc-const-correctness.AnalyzeValues": false,\
4 // RUN:   "misc-const-correctness.AnalyzeReferences": false}\
5 // RUN:  }' -- -fno-delayed-template-parsing
6 
7 // CHECK-MESSAGES: warning: The check 'misc-const-correctness' will not perform any analysis because both 'AnalyzeValues' and 'AnalyzeReferences' are false. [clang-tidy-config]
8 
g()9 void g() {
10   int p_local0 = 42;
11   // CHECK-FIXES-NOT: int const p_local0 = 42;
12 }
13