[PATCH] D71001: [Clang-Tidy] New check: bugprone-misplaced-pointer-arithmetic-in-alloc
Eugene Zelenko via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Dec 4 05:20:49 PST 2019
Eugene.Zelenko added a comment.
What about new operator? May be check should have option for custom allocators?
================
Comment at: clang-tools-extra/docs/ReleaseNotes.rst:207
+- New :doc:`bugprone-misplaced-pointer-arithmetic-in-alloc
+ <clang-tidy/checks/bugprone-misplaced-pointer-arithmetic-in-alloc>` check.
----------------
Please move to new checks list in alphabetical order.
================
Comment at: clang-tools-extra/docs/ReleaseNotes.rst:210
+
+ Finds cases where an integer expression is added to the result of a memory
+ allocation function instead of its argument.
----------------
Please synchronize with first statement in documentation.
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