[PATCH] D41800: [analyzer] Use a custom program point for the check::NewAllocator callback.
Artem Dergachev via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Jan 5 17:49:49 PST 2018
NoQ created this revision.
NoQ added reviewers: dcoughlin, xazax.hun, a.sidorin, george.karpenkov, szepet.
Herald added subscribers: cfe-commits, rnkovacs.
This addresses a TODO from https://reviews.llvm.org/D41406. I re-used `PostImplicitCall` program point when calling the new callback, but it indeed causes problems: because implicit call has no associated statement, `MallocChecker` was unable to put visitor diagnostics over these nodes. Create a new class of `ProgramPoint`, namely `PostAllocatorCall`, which is a sub-class of `StmtPoint`, and use that when calling the callback.
This patch might cause slight conflicts with https://reviews.llvm.org/D41150.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 21675 bytes
Desc: not available
More information about the cfe-commits