[clang-tools-extra] [clang-tidy] Rename `cert-mem57-cpp` to `bugprone-default-operator-new-on-overaligned-type` (PR #165542)

Baranov Victor via cfe-commits cfe-commits at lists.llvm.org
Sat Nov 1 08:19:46 PDT 2025


================
@@ -0,0 +1,19 @@
+.. title:: clang-tidy - bugprone-default-operator-new-on-overaligned-type
+
+bugprone-default-operator-new-on-overaligned-type
+=================================================
+
+This check flags uses of default ``operator new`` where the type has extended
+alignment (an alignment greater than the fundamental alignment). (The default
+``operator new`` is guaranteed to provide the correct alignment if the
+requested alignment is less or equal to the fundamental alignment).
----------------
vbvictor wrote:

```suggestion
requested alignment is less or equal to the fundamental alignment.
```

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


More information about the cfe-commits mailing list