[clang] [clang-tools-extra] [clang][analyzer] Add ReportInC99AndEarlier option to DeprecatedOrUnsafeBuf… (PR #168704)
Balázs Benics via cfe-commits
cfe-commits at lists.llvm.org
Sun Dec 14 03:18:53 PST 2025
================
@@ -0,0 +1,74 @@
+// These cases should not warn
+
+// C99 with "all" mode
+// RUN: %clang_analyze_cc1 %s -verify=common -std=gnu99 \
+// RUN: -analyzer-checker=security.insecureAPI.DeprecatedOrUnsafeBufferHandling \
+// RUN: -analyzer-config security.insecureAPI.DeprecatedOrUnsafeBufferHandling:ReportMode=all
----------------
steakhal wrote:
There is quite a bit of repetition in the RUN lines. I wonder if using the DEFINE lit directive would enable us to reduce it, so the tests could focus on the actual differences. WDYT?
https://github.com/llvm/llvm-project/pull/168704
More information about the cfe-commits
mailing list