llvm / llvm-project

The LLVM Project is a collection of modular and reusable compiler and toolchain technologies.
http://llvm.org
Other
29.06k stars 11.98k forks source link

clang-tidy: add a performance-... alias to readability-const-return-type #54503

Open gleb-kov opened 2 years ago

gleb-kov commented 2 years ago

https://clang.llvm.org/extra/clang-tidy/checks/readability-const-return-type.html says that this check might help with performance problems, hence it might be useful as performance check. I suggest to add an alias with performance prefix, like many others here https://clang.llvm.org/extra/clang-tidy/checks/list.html, eg performance-const-return-type

llvmbot commented 2 years ago

@llvm/issue-subscribers-clang-tidy