[clang-tidy] Ignore overriden methods in `readability-const-return-type`.
authorThomas Etter <tetter@google.com>
Mon, 14 Nov 2022 18:56:07 +0000 (18:56 +0000)
committerYitzhak Mandelbaum <yitzhakm@google.com>
Tue, 15 Nov 2022 14:24:05 +0000 (14:24 +0000)
commitf3afd16b65ebda19e417120acf3c3793c171cf5e
tree71e05b958e0f49e7b918b77965813b60e8a76a43
parente05ce03cfa0b36e9b99149e21afcb1fc039df813
[clang-tidy] Ignore overriden methods in `readability-const-return-type`.

Overrides are constrained by the signature of the overridden method, so a
warning on an override is frequently unactionable.

Differential Revision: https://reviews.llvm.org/D137968
clang-tools-extra/clang-tidy/readability/ConstReturnTypeCheck.cpp
clang-tools-extra/docs/ReleaseNotes.rst
clang-tools-extra/test/clang-tidy/checkers/readability/const-return-type.cpp