[clang-tidy]performance-unnecessary-copy-initialization: fix false negative
We're missing all cases where the return value is a type alias. Unfortunately, this includes things we care about, such as `std::vector<T>::operator[]` (return value is `const_reference`, not `const T&`). Match the canonical type instead. Differential Revision: https://reviews.llvm.org/D112722
Loading
Please sign in to comment