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: "misc-const-correctness.AnalyzePointers": false\
6// RUN: }}' -- -fno-delayed-template-parsing
7
8// CHECK-MESSAGES: warning: The check 'misc-const-correctness' will not perform any analysis because 'AnalyzeValues', 'AnalyzeReferences' and 'AnalyzePointers' are false. [clang-tidy-config]
9
10void g() {
11 int p_local0 = 42;
12 // CHECK-FIXES-NOT: int const p_local0 = 42;
13}
14

Provided by KDAB

Privacy Policy
Improve your Profiling and Debugging skills
Find out more

source code of clang-tools-extra/test/clang-tidy/checkers/misc/const-correctness-wrong-config.cpp