[clang-tools-extra] [clang-tidy][NFC] use local config in test cases (PR #120004)

Congcong Cai via cfe-commits cfe-commits at lists.llvm.org
Sun Dec 15 15:54:20 PST 2024


================
@@ -1,4 +1,4 @@
-// RUN: %check_clang_tidy -check-suffix=STRICT  %s cppcoreguidelines-pro-type-const-cast %t -- -config="{CheckOptions: {StrictMode: true}}"
+// RUN: %check_clang_tidy -check-suffix=STRICT  %s cppcoreguidelines-pro-type-const-cast %t -- -config="{CheckOptions: {cppcoreguidelines-pro-type-const-cast.StrictMode: true}}"
----------------
HerrCai0907 wrote:

IMO, we should define check related config here instead of very top level. what i mention global options is also in this scopes instead of clangtidy's command line option.

https://github.com/llvm/llvm-project/pull/120004


More information about the cfe-commits mailing list