File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 33bugprone-default-operator-new-on-overaligned-type
44=================================================
55
6- This check flags uses of default ``operator new `` where the type has extended
7- alignment (an alignment greater than the fundamental alignment). (The default
8- ``operator new `` is guaranteed to provide the correct alignment if the
9- requested alignment is less or equal to the fundamental alignment).
6+ Flags uses of default ``operator new `` where the type has extended
7+ alignment (an alignment greater than the fundamental alignment).
8+
9+ The default ``operator new `` is guaranteed to provide the correct alignment if the
10+ requested alignment is less or equal to the fundamental alignment.
1011Only cases are detected (by design) where the ``operator new `` is not
1112user-defined and is not a placement new (the reason is that in these cases we
1213assume that the user provided the correct memory allocation).
Original file line number Diff line number Diff line change @@ -92,8 +92,8 @@ Clang-Tidy Checks
9292 :doc: `bugprone-copy-constructor-init <bugprone/copy-constructor-init >`, "Yes"
9393 :doc: `bugprone-crtp-constructor-accessibility <bugprone/crtp-constructor-accessibility >`, "Yes"
9494 :doc: `bugprone-dangling-handle <bugprone/dangling-handle >`,
95- :doc: `bugprone-derived-method-shadowing-base-method <bugprone/derived-method-shadowing-base-method >`,
9695 :doc: `bugprone-default-operator-new-on-overaligned-type <bugprone/default-operator-new-on-overaligned-type >`,
96+ :doc: `bugprone-derived-method-shadowing-base-method <bugprone/derived-method-shadowing-base-method >`,
9797 :doc: `bugprone-dynamic-static-initializers <bugprone/dynamic-static-initializers >`,
9898 :doc: `bugprone-easily-swappable-parameters <bugprone/easily-swappable-parameters >`,
9999 :doc: `bugprone-empty-catch <bugprone/empty-catch >`,
You can’t perform that action at this time.
0 commit comments