[PATCH] D71001: [Clang-Tidy] New check: bugprone-misplaced-pointer-arithmetic-in-alloc
Dmitri Gribenko via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Dec 4 07:58:30 PST 2019
gribozavr2 added a comment.
In D71001#1769035 <https://reviews.llvm.org/D71001#1769035>, @Eugene.Zelenko wrote:
> > ASan can help debug this issue, and more.
>
> This is dynamic analysis, and detection of problem depends on test case. Detection of such problem during static analysis makes sense.
As is, this check targets a very narrow pattern, and is very easy to fool with the same code split across multiple statements. I don't think it pulls its weight.
Repository:
rCTE Clang Tools Extra
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D71001/new/
https://reviews.llvm.org/D71001
More information about the cfe-commits
mailing list