[clang-tools-extra] [clang-tidy] Add new `bugprone-suspicious-pointer-arithmetics-using-sizeof` (`cert-arr39-c`) check (PR #106061)

Nicolas van Kempen via cfe-commits cfe-commits at lists.llvm.org
Tue Aug 27 14:35:21 PDT 2024


================
@@ -0,0 +1,108 @@
+//===--- SuspiciousPointerArithmeticsUsingSizeofCheck.cpp - clang-tidy ----===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+
+#include "SuspiciousPointerArithmeticsUsingSizeofCheck.h"
+#include "../utils/Matchers.h"
----------------
nicovank wrote:

```suggestion
```

It doesn't seem like anything from this is used.

https://github.com/llvm/llvm-project/pull/106061


More information about the cfe-commits mailing list