diff options
| author | Matthias Gehre <gehre.matthias@gmail.com> | 2019-09-22 23:19:41 +0200 |
|---|---|---|
| committer | Matthias Gehre <gehre.matthias@gmail.com> | 2019-11-06 09:27:02 +0100 |
| commit | 24130d661ed42c30f009b695d3c9ce57d2208b5e (patch) | |
| tree | ef198d4aeec67df10b1e84c682db274940e8fe59 /clang-tools-extra/docs/ReleaseNotes.rst | |
| parent | 092452d402d793c731c3861ba920a85c5c4e1fff (diff) | |
| download | bcm5719-llvm-24130d661ed42c30f009b695d3c9ce57d2208b5e.tar.gz bcm5719-llvm-24130d661ed42c30f009b695d3c9ce57d2208b5e.zip | |
[clang-tidy] Add readability-make-member-function-const
Summary:
Finds non-static member functions that can be made ``const``
because the functions don't use ``this`` in a non-const way.
The check conservatively tries to preserve logical costness in favor of
physical costness. See readability-make-member-function-const.rst for more
details.
Reviewers: aaron.ballman, gribozavr, hokein, alexfh
Subscribers: mgorny, xazax.hun, cfe-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D68074
Diffstat (limited to 'clang-tools-extra/docs/ReleaseNotes.rst')
| -rw-r--r-- | clang-tools-extra/docs/ReleaseNotes.rst | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/clang-tools-extra/docs/ReleaseNotes.rst b/clang-tools-extra/docs/ReleaseNotes.rst index 4a7fef5bb03..40b7aed4178 100644 --- a/clang-tools-extra/docs/ReleaseNotes.rst +++ b/clang-tools-extra/docs/ReleaseNotes.rst @@ -147,6 +147,12 @@ Improvements to clang-tidy Finds classes, structs, and unions that contain redundant member access specifiers. +- New :doc:`readability-make-member-function-const + <clang-tidy/checks/readability-make-member-function-const>` check. + + Finds non-static member functions that can be made ``const`` + because the functions don't use ``this`` in a non-const way. + Improvements to include-fixer ----------------------------- |

