We now display a simple note if the reason is that the used class does not
support move semantics.
This fixes llvm#62550
Paths
| Differential D153220
[clang-tidy] Improve `performance-move-const-arg` message when no move constructor is available ClosedPublic Authored by AMS21 on Jun 18 2023, 12:41 AM.
Details Summary We now display a simple note if the reason is that the used class does not This fixes llvm#62550
Diff Detail
Event Timeline
Comment Actions Overall looks ok,
AMS21 marked 5 inline comments as done. Comment ActionsImplement suggested changes Comment Actions +- LGTM
This revision is now accepted and ready to land.Jun 18 2023, 3:22 AM AMS21 marked 2 inline comments as done. Comment ActionsImplemented suggested changes
Comment Actions LGTM
Comment Actions As always if there are no more problems, I would kindly ask for someone to push this on my behalf :) This revision was landed with ongoing or failed builds.Jun 18 2023, 4:42 AM Closed by commit rG82d4dc20efbd: [clang-tidy] Improve `performance-move-const-arg` message when no move… (authored by AMS21, committed by PiotrZSL). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 532469 clang-tools-extra/clang-tidy/performance/MoveConstArgCheck.cpp
clang-tools-extra/docs/ReleaseNotes.rst
clang-tools-extra/test/clang-tidy/checkers/performance/move-const-arg.cpp
|
make sure you use here canonical type, or it may not work correctly with typedefs, like typedefs to records.
same in line 120, in fact only on line 154 would be good to use original type.