diff options
author | Samuel Benzaquen <sbenza@google.com> | 2016-03-21 18:00:43 +0000 |
---|---|---|
committer | Samuel Benzaquen <sbenza@google.com> | 2016-03-21 18:00:43 +0000 |
commit | bd6a74e1facb648f2d4dd94ac0f1a62f6dc2b44b (patch) | |
tree | 8f55dae40f856cffa25f4e6acd0c80e095ab2170 /clang-tools-extra/clang-tidy/misc/InefficientAlgorithmCheck.cpp | |
parent | 86b9fbe980dde2c93b59314d87434aebcdcd79a2 (diff) | |
download | bcm5719-llvm-bd6a74e1facb648f2d4dd94ac0f1a62f6dc2b44b.tar.gz bcm5719-llvm-bd6a74e1facb648f2d4dd94ac0f1a62f6dc2b44b.zip |
[clang-tidy] Fix check broken in rL263822.
Add names missing from rL263822 and add tests to prevent future omissions.
llvm-svn: 263963
Diffstat (limited to 'clang-tools-extra/clang-tidy/misc/InefficientAlgorithmCheck.cpp')
-rw-r--r-- | clang-tools-extra/clang-tidy/misc/InefficientAlgorithmCheck.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang-tools-extra/clang-tidy/misc/InefficientAlgorithmCheck.cpp b/clang-tools-extra/clang-tidy/misc/InefficientAlgorithmCheck.cpp index d585590128f..0dea909f8ed 100644 --- a/clang-tools-extra/clang-tidy/misc/InefficientAlgorithmCheck.cpp +++ b/clang-tools-extra/clang-tidy/misc/InefficientAlgorithmCheck.cpp @@ -38,7 +38,8 @@ void InefficientAlgorithmCheck::registerMatchers(MatchFinder *Finder) { "::std::lower_bound", "::std::upper_bound"); const auto ContainerMatcher = classTemplateSpecializationDecl(hasAnyName( "::std::set", "::std::map", "::std::multiset", "::std::multimap", - "::std::unordered_set", "::std::unordered_map")); + "::std::unordered_set", "::std::unordered_map", + "::std::unordered_multiset", "::std::unordered_multimap")); const auto Matcher = callExpr( |