[clang] [clang-tools-extra] [clang][analyzer] Add ReportInC99AndEarlier option to DeprecatedOrUnsafeBuf… (PR #168704)

Endre Fülöp via cfe-commits cfe-commits at lists.llvm.org
Mon Jan 5 11:37:42 PST 2026


================
@@ -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
----------------
gamesh411 wrote:

I have introduced the `DEFINE:` and `REDEFINE:` lit test suite primitive. I think it is a bit more readable now.

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


More information about the cfe-commits mailing list