Skip to content

Commit ff0b00e

Browse files
committed
fix docs and format
1 parent 7cb6b29 commit ff0b00e

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

clang-tools-extra/docs/clang-tidy/checks/bugprone/default-operator-new-on-overaligned-type.rst

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,11 @@
33
bugprone-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.
1011
Only cases are detected (by design) where the ``operator new`` is not
1112
user-defined and is not a placement new (the reason is that in these cases we
1213
assume that the user provided the correct memory allocation).

clang-tools-extra/docs/clang-tidy/checks/list.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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>`,

0 commit comments

Comments
 (0)