[clang-tidy] Use hasAnyName() instead of matchesName().
authorSamuel Benzaquen <sbenza@google.com>
Fri, 18 Mar 2016 20:14:35 +0000 (20:14 +0000)
committerSamuel Benzaquen <sbenza@google.com>
Fri, 18 Mar 2016 20:14:35 +0000 (20:14 +0000)
commitd7f2e34e040d048c4741586d90f42f0919f09344
tree92152da6c971086b5043f641f47d14f2e7896bf3
parent024f4c17d15ae87c5d453c2f65dfccdbfe410908
[clang-tidy] Use hasAnyName() instead of matchesName().

matchesName() uses regular expressions and it is very slow.
hasAnyName() gives the same result and it is much faster.
A benchmark (with all the checks enabled) shows a ~5% speed up of
clang-tidy.

llvm-svn: 263822
clang-tools-extra/clang-tidy/misc/InefficientAlgorithmCheck.cpp