Skip to content

Commit

Permalink
[clang-tidy][NFC] Fixes in release notes and documentation
Browse files Browse the repository at this point in the history
Minor fixes in documentation & release notes.
  • Loading branch information
PiotrZSL committed Feb 9, 2024
1 parent b2b3a52 commit d86f216
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
12 changes: 6 additions & 6 deletions clang-tools-extra/docs/ReleaseNotes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,8 @@ Changes in existing checks
global options of the same name.

- Improved :doc:`bugprone-too-small-loop-variable
<clang-tidy/checks/bugprone/too-small-loop-variable>` support by correctly
implementing the check for const loop boundary.
<clang-tidy/checks/bugprone/too-small-loop-variable>` check by incorporating
better support for ``const`` loop boundaries.

- Cleaned up :doc:`cppcoreguidelines-prefer-member-initializer
<clang-tidy/checks/cppcoreguidelines/prefer-member-initializer>`
Expand Down Expand Up @@ -163,13 +163,13 @@ Changes in existing checks
Removed checks
^^^^^^^^^^^^^^

Miscellaneous
^^^^^^^^^^^^^

- Removed `cert-dcl21-cpp`, which was deprecated since :program:`clang-tidy` 17,
since the rule DCL21-CPP has been removed from the CERT guidelines.

- Fixed incorrect formatting in ``clang-apply-repalcements`` when no ``--format``
Miscellaneous
^^^^^^^^^^^^^

- Fixed incorrect formatting in ``clang-apply-replacements`` when no ``--format``
option is specified. Now ``clang-apply-replacements`` applies formatting only with
the option.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ that should be written as
g();
return;
to make clear that ``g()`` is called and immediately afterwards the function
to make clear that ``g()`` is called and immediately afterwards the function
returns (nothing).

In C, the same issue is detected by the compiler if the ``-Wpedantic`` mode
Expand All @@ -46,6 +46,6 @@ Options
.. option:: StrictMode

The value `false` specifies that a direct return statement shall
be excluded from the analysis if it is the only statement not
contained in a block like ``if (cond) return g();``. The default
be excluded from the analysis if it is the only statement not
contained in a block, like ``if (cond) return g();``. The default
value is `true`.

0 comments on commit d86f216

Please sign in to comment.