[PATCH] D71001: [Clang-Tidy] New check: bugprone-misplaced-pointer-arithmetic-in-alloc
Balogh, Ádám via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Dec 4 07:58:32 PST 2019
baloghadamsoftware added a comment.
In D71001#1769018 <https://reviews.llvm.org/D71001#1769018>, @gribozavr2 wrote:
> This check is quite limited. For example, if the addition is done in a separate statement, this check wouldn't catch the problem. ASan would.
That is not a simple and common mistake like putting the addition or subtraction to the wrong side of the closing parenthesis.
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