[PATCH] D108753: [analyzer] MallocChecker: Add notes from NoOwnershipChangeVisitor only when a function "intents", but doesn't change ownership, enable by default
Kristóf Umann via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Sep 8 15:40:15 PDT 2021
Szelethus added a comment.
In D108753#2988632 <https://reviews.llvm.org/D108753#2988632>, @NoQ wrote:
> This looks good!
>
> I guess one way to make this //even more// conservative would be to match the variable inside the delete-expression to the one we expect to get deallocated.
Yeah, I thought about that, but one counter argument to that is that once an intent to do some deallocation is already there, its possible that the wrong variable was deleted, or the deallocation wasn't thorough enough.
Thanks for the reviews!
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D108753/new/
https://reviews.llvm.org/D108753
More information about the cfe-commits
mailing list