[clang] [clang][analyzer] Add new option to specify functions `SecuritySyntaxChecker` warns about (PR #164184)
Balazs Benics via cfe-commits
cfe-commits at lists.llvm.org
Thu Oct 30 03:15:12 PDT 2025
================
@@ -121,6 +121,7 @@
// CHECK-NEXT: region-store-small-struct-limit = 2
// CHECK-NEXT: report-in-main-source-file = false
// CHECK-NEXT: security.cert.env.InvalidPtr:InvalidatingGetEnv = false
+// CHECK-NEXT: security.insecureAPI.SecuritySyntaxChecker:Warn = ""
----------------
steakhal wrote:
It's nice that we have a test case for the default value of the option, but I think we should really test the case when we set something custom function name too. Would it find calls to the banned custom function? Currently not tests demonstrate this, making the added code uncovered by tests.
(That test should be done in some other file than this one where I'm making this comment)
https://github.com/llvm/llvm-project/pull/164184
More information about the cfe-commits
mailing list