[clang-tidy] Speed up performance-unnecessary-value-param check
authorAlexander Kornienko <alexfh@google.com>
Tue, 16 May 2017 17:28:17 +0000 (17:28 +0000)
committerAlexander Kornienko <alexfh@google.com>
Tue, 16 May 2017 17:28:17 +0000 (17:28 +0000)
commitb215d473ddadc3199bd63656bf15daff329082b6
tree58f1ee3d381fb4d4ae352d502b0f9179159ee05d
parent369f74c16b91ddb9c9bb626e3e48284beaf2d61e
[clang-tidy] Speed up performance-unnecessary-value-param check

Moved slower matchers closer to the end. The total speed up on a large file I
was interested in is not huge, just about 10%, since the check seems to be doing
a lot in the check() method.

llvm-svn: 303191
clang-tools-extra/clang-tidy/performance/UnnecessaryValueParamCheck.cpp