[PATCH] D120992: [analyzer] ReverseNull: New checker to warn for pointer value conditions, if the pointer value is unconditionally non-null
Balázs Benics via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Mar 4 06:15:16 PST 2022
steakhal added a comment.
In addition to the excellent summary, I'd like to highlight that this is intended to catch only the cases where the use of the constrained pointer is in the very same stack frame where it was constrained. This leads to a really nice property: local reasoning, which greatly reduces the number of false-positives.
This should be emphasized in the doc segment of the checker as well.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D120992/new/
https://reviews.llvm.org/D120992
More information about the cfe-commits
mailing list