[clang-tidy] Add performance check to flag function parameters of expensive to copy...
authorFelix Berger <flx@google.com>
Tue, 29 Mar 2016 02:42:38 +0000 (02:42 +0000)
committerFelix Berger <flx@google.com>
Tue, 29 Mar 2016 02:42:38 +0000 (02:42 +0000)
commit3c8edde1411dfae13b7ccce362dd8a1f946c8c11
treeaaa3b01cf9505b2e81be7fc454af55d3ec73a673
parenta79c798ca05bccacdaf2ec90a24e60799c748b39
[clang-tidy] Add performance check to flag function parameters of expensive to copy types that can be safely converted to const references.

Reviewers: alexfh

Subscribers: fowles, cfe-commits

Differential Revision: http://reviews.llvm.org/D17491

llvm-svn: 264694
clang-tools-extra/clang-tidy/performance/CMakeLists.txt
clang-tools-extra/clang-tidy/performance/PerformanceTidyModule.cpp
clang-tools-extra/clang-tidy/performance/UnnecessaryValueParamCheck.cpp [new file with mode: 0644]
clang-tools-extra/clang-tidy/performance/UnnecessaryValueParamCheck.h [new file with mode: 0644]
clang-tools-extra/docs/clang-tidy/checks/list.rst
clang-tools-extra/docs/clang-tidy/checks/performance-unnecessary-value-param.rst [new file with mode: 0644]
clang-tools-extra/test/clang-tidy/performance-unnecessary-value-param.cpp [new file with mode: 0644]