diff options
Diffstat (limited to 'clang-tools-extra/docs/clang-tidy/checks/cert/mem57-cpp.rst')
| -rw-r--r-- | clang-tools-extra/docs/clang-tidy/checks/cert/mem57-cpp.rst | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/clang-tools-extra/docs/clang-tidy/checks/cert/mem57-cpp.rst b/clang-tools-extra/docs/clang-tidy/checks/cert/mem57-cpp.rst index 135cfb8..aeeffec 100644 --- a/clang-tools-extra/docs/clang-tidy/checks/cert/mem57-cpp.rst +++ b/clang-tools-extra/docs/clang-tidy/checks/cert/mem57-cpp.rst @@ -3,13 +3,10 @@ cert-mem57-cpp ============== -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). -Only cases are detected (by design) where the ``operator new`` is not -user-defined and is not a placement new (the reason is that in these cases we -assume that the user provided the correct memory allocation). +The `cert-mem57-cpp` is an alias, please see +:doc:`bugprone-default-operator-new-on-overaligned-type +<../bugprone/default-operator-new-on-overaligned-type>` +for more information. This check corresponds to the CERT C++ Coding Standard rule `MEM57-CPP. Avoid using default operator new for over-aligned types |
