[PATCH] D54262: [clang-tidy] Add `delete this` bugprone check (PR38741)
Mateusz Maćkowski via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Nov 8 07:13:14 PST 2018
m4tx created this revision.
m4tx added reviewers: alexfh, hokein.
Herald added subscribers: cfe-commits, xazax.hun, mgorny.
Add a bugprone check to clang-tidy that detects the usages of `delete this`. The warning is shown even when `delete this` is the last line in the method (as there is no guarantee that it won't be called from another method, or the pointer won't be used in any way afterwards).
rCTE Clang Tools Extra
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 4684 bytes
Desc: not available
More information about the cfe-commits