[clang-tidy] Improve `performance-move-const-arg` message when no move constructor...
authorAMS21 <AMS21.github@gmail.com>
Sun, 18 Jun 2023 11:40:47 +0000 (11:40 +0000)
committerPiotr Zegar <me@piotrzegar.pl>
Sun, 18 Jun 2023 11:40:47 +0000 (11:40 +0000)
commit82d4dc20efbd72e20b430913e985e38997c7a3e8
treef6f10072dd3d854e23584fc68a6b9b5c19295966
parentc96306db2cad4cf687cb044c8a0635f982a4db98
[clang-tidy] Improve `performance-move-const-arg` message when no move constructor is available

We now display a simple note if the reason is that the used class does not
support move semantics.

This fixes llvm#62550

Reviewed By: PiotrZSL

Differential Revision: https://reviews.llvm.org/D153220
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