[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 09:25:02 PDT 2025
================
@@ -0,0 +1,20 @@
+.. title:: clang-tidy - bugprone-default-operator-new-on-overaligned-type
+
+bugprone-default-operator-new-on-overaligned-type
+=================================================
+
+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
The default ``operator new`` is guaranteed to provide the correct alignment
if the 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