[clang] [clang][analyzer] Add allocation failure modeling to DynamicMemoryModeling (PR #205371)
Balázs Benics via cfe-commits
cfe-commits at lists.llvm.org
Tue Jun 23 09:12:14 PDT 2026
================
@@ -512,7 +512,14 @@ def DynamicMemoryModeling: Checker<"DynamicMemoryModeling">,
"NoStoreFuncVisitor.",
"true",
Released,
- Hide>
+ Hide>,
+ CmdLineOption<Boolean,
+ "ModelAllocationFailure",
+ "At allocation functions, add extra execution branches for "
+ "failed memory allocation (function returns null value when "
+ "size is non-null) if applicable.",
+ "false",
+ Released>
----------------
steakhal wrote:
I think this deserves:
- An entry in the checker documentation, with example.
- A note in the release notes.
https://github.com/llvm/llvm-project/pull/205371
More information about the cfe-commits
mailing list