HomePhabricator

clang-tidy: Add `performance-no-automatic-move` check

Description

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

Details

Provenance
Hennadii Stepanov <32963518+hebasto@users.noreply.github.com>Authored on Dec 27 2022, 15:25
PiRKCommitted on May 12 2025, 18:39
PiRKPushed on May 12 2025, 18:39
Reviewer
Restricted Project
Differential Revision
D18071: clang-tidy: Add `performance-no-automatic-move` check
Parents
rABC32700bf2f40f: [e.cash] Add Trezor to e.cash/wallets list
Branches
Unknown
Tags
Unknown