[clang-tools-extra] [clang-tidy] New bugprone-unsafe-format-string check (PR #168691)

Baranov Victor via cfe-commits cfe-commits at lists.llvm.org
Fri Nov 6 02:01:47 PST 2026


================
@@ -0,0 +1,4 @@
+// RUN: %check_clang_tidy %s bugprone-unsafe-format-string %t --\
+// RUN:  -config="{CheckOptions: {bugprone-unsafe-format-string.CustomScanfFunctions: 'myscanf, wrong;'  }}"
+
+// CHECK-MESSAGES: warning: invalid configuration value for option 'CustomScanfFunctions'
----------------
vbvictor wrote:

add newline

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


More information about the cfe-commits mailing list