This is an archive of the discontinued LLVM Phabricator instance.

[clang-tidy] Ignore overriden methods in `readability-const-return-type`.
ClosedPublic

Authored by ymandel on Nov 14 2022, 11:02 AM.

Details

Summary

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

Diff Detail

Event Timeline

ymandel created this revision.Nov 14 2022, 11:02 AM
Herald added a project: Restricted Project. · View Herald TranscriptNov 14 2022, 11:02 AM
ymandel requested review of this revision.Nov 14 2022, 11:02 AM
Herald added a project: Restricted Project. · View Herald TranscriptNov 14 2022, 11:02 AM
ymandel updated this revision to Diff 475224.Nov 14 2022, 11:27 AM

Add test case

gribozavr2 accepted this revision.Nov 14 2022, 11:42 AM
This revision is now accepted and ready to land.Nov 14 2022, 11:42 AM
njames93 accepted this revision.Nov 14 2022, 12:22 PM

Lg, but can you address that one nit before landing

clang-tools-extra/docs/ReleaseNotes.rst
169

Can this be moved to below the braces around statements check as we like to keep things in alphabetical order.

ymandel updated this revision to Diff 475440.Nov 15 2022, 5:59 AM

address comments

ymandel marked an inline comment as done.Nov 15 2022, 6:01 AM