HomePhabricator

[clang-tidy] New check: bugprone-misplaced-pointer-arithmetic-in-alloc

Authored by baloghadamsoftware on Dec 4 2019, 1:48 AM.

Description

[clang-tidy] New check: bugprone-misplaced-pointer-arithmetic-in-alloc

Finds cases where an integer expression is added to the result
of a memory allocation function instead of its argument.

Differential Revision: https://reviews.llvm.org/D71001