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

via cfe-commits cfe-commits at lists.llvm.org
Sat Nov 1 09:29:27 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.
----------------
zeyi2 wrote:

Fixed, should be ready to merge after CI passes ;)

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


More information about the cfe-commits mailing list