[clang-tools-extra] [clang-tidy] Add new `bugprone-suspicious-pointer-arithmetics-using-sizeof` (`cert-arr39-c`) check (PR #106061)
via cfe-commits
cfe-commits at lists.llvm.org
Tue Aug 27 07:25:03 PDT 2024
================
@@ -3,10 +3,10 @@
bugprone-suspicious-pointer-arithmetics-using-sizeof
====================================================
-Finds suspicious pointer arithmetic calculations where the pointer is offset by a ``sizeof()`` expression.
+Finds suspicious pointer arithmetic calculations where the pointer is offset by an ``alignof()``, ``offsetof()``, or ``sizeof()`` expression.
----------------
EugeneZelenko wrote:
Please follow 80 characters limit.
https://github.com/llvm/llvm-project/pull/106061
More information about the cfe-commits
mailing list