clang-tidy: Add performance-no-automatic-move check
Summary:
This does not show any noticeable performance gain in the benchmarks, but it can avoid introducing performance issues in the future.
https://clang.llvm.org/extra/clang-tidy/checks/performance/no-automatic-move.html
This is a backport of core#26758
Test Plan:
cmake .. -GNinja -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -DENABLE_CLANG_TIDY=ON ninja all check-all
Reviewers: #bitcoin_abc, Fabien
Reviewed By: #bitcoin_abc, Fabien
Subscribers: Fabien
Differential Revision: https://reviews.bitcoinabc.org/D18071