Page MenuHomePhabricator

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

Authored by PiRK on Sat, May 10, 09:54.

Details

Reviewers
None
Group Reviewers
Restricted Project
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