14 lines · cpp
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-parsing7 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