[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
================
@@ -901,12 +901,25 @@ def UncheckedReturn : Checker<"UncheckedReturn">,
Dependencies<[SecuritySyntaxChecker]>,
Documentation<HasDocumentation>;
-def DeprecatedOrUnsafeBufferHandling :
- Checker<"DeprecatedOrUnsafeBufferHandling">,
- HelpText<"Warn on uses of unsecure or deprecated buffer manipulating "
- "functions">,
- Dependencies<[SecuritySyntaxChecker]>,
- Documentation<HasDocumentation>;
+def DeprecatedOrUnsafeBufferHandling
+ : Checker<"DeprecatedOrUnsafeBufferHandling">,
+ HelpText<"Warn on uses of unsecure or deprecated buffer manipulating "
+ "functions">,
+ Dependencies<[SecuritySyntaxChecker]>,
+ CheckerOptions<
+ [CmdLineOption<
+ String, "ReportMode",
+ "Controls when warnings are reported. \"all\" reports all "
+ "unsafe "
+ "functions regardless of C standard or Annex K availability. "
+ "\"actionable\" only reports when Annex K is available (C11 "
+ "with "
----------------
steakhal wrote:
I think you should re-flow the comments. Its weird to see a single word in a dedicated line.
https://github.com/llvm/llvm-project/pull/168704
More information about the cfe-commits
mailing list