This is an archive of the discontinued LLVM Phabricator instance.

[clang-tidy]performance-no-automatic-move: fix false negative on `const T&&` ctors.
ClosedPublic

Authored by courbet on May 22 2023, 6:24 AM.

Details

Summary

We were only handling const T&/T&& ctor pairs, and we were missing uref-based ctors.

Diff Detail

Event Timeline

courbet created this revision.May 22 2023, 6:24 AM
courbet requested review of this revision.May 22 2023, 6:24 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 22 2023, 6:24 AM
courbet updated this revision to Diff 524276.May 22 2023, 6:25 AM

fix release note placemenfix release note placement

Eugene.Zelenko added inline comments.May 22 2023, 6:54 AM
clang-tools-extra/docs/ReleaseNotes.rst
391

Please use double back-ticks for const &&.

clang-tools-extra/test/clang-tidy/checkers/performance/no-automatic-move.cpp
118

Is it really needed?

courbet updated this revision to Diff 524288.May 22 2023, 7:01 AM
courbet marked 2 inline comments as done.

address review comments

gnanabit accepted this revision.May 23 2023, 11:13 AM
This revision is now accepted and ready to land.May 23 2023, 11:13 AM
This revision was landed with ongoing or failed builds.May 24 2023, 6:05 AM
This revision was automatically updated to reflect the committed changes.

The release note references documentation that doesn't exist, so Sphinx is failing: https://lab.llvm.org/buildbot/#/builders/115/builds/46942

The release note references documentation that doesn't exist, so Sphinx is failing: https://lab.llvm.org/buildbot/#/builders/115/builds/46942

Sorry, fixed in rG62dc3ba8442f

The release note references documentation that doesn't exist, so Sphinx is failing: https://lab.llvm.org/buildbot/#/builders/115/builds/46942

Sorry, fixed in rG62dc3ba8442f

Thanks! In retrospect, I should have fixed that myself rather than mention it here, sorry for that. :-D