[clang] [clang][analyzer] Add allocation failure modeling to DynamicMemoryModeling (PR #205371)
Balázs Kéri via cfe-commits
cfe-commits at lists.llvm.org
Wed Jun 24 01:08:12 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>
----------------
balazske wrote:
The checker (`DynamicMemoryModeling`) and its existing options have currently no documentation in the rst format. Documentation can be added only for the whole checker (or at some of the non-modeling checkers?).
https://github.com/llvm/llvm-project/pull/205371
More information about the cfe-commits
mailing list