[clang-tools-extra] [clang-tidy] add depercation warning for non-whitelisted global options (PR #121057)
Congcong Cai via cfe-commits
cfe-commits at lists.llvm.org
Fri Dec 27 15:57:45 PST 2024
================
@@ -0,0 +1,3 @@
+// RUN: clang-tidy %s --config="{CheckOptions:{StrictMode: true}}" -checks="-*,modernize-use-std-format" | FileCheck %s
+
+// CHECK: warning: deprecation global option 'StrictMode', please use 'modernize-use-std-format.StrictMode'. [clang-tidy-config]
----------------
HerrCai0907 wrote:
```suggestion
// CHECK: warning: global option 'StrictMode' is deprecated, please use 'modernize-use-std-format.StrictMode' instead. [clang-tidy-config]
```
https://github.com/llvm/llvm-project/pull/121057
More information about the cfe-commits
mailing list