[clang-tidy] Fixed a false positive case in misc-inefficient-algorithm checker.

llvm-svn: 228945
diff --git a/clang-tools-extra/clang-tidy/misc/InefficientAlgorithmCheck.cpp b/clang-tools-extra/clang-tidy/misc/InefficientAlgorithmCheck.cpp
index 763d376..906140d 100644
--- a/clang-tools-extra/clang-tidy/misc/InefficientAlgorithmCheck.cpp
+++ b/clang-tools-extra/clang-tidy/misc/InefficientAlgorithmCheck.cpp
@@ -19,9 +19,9 @@
 
 void InefficientAlgorithmCheck::registerMatchers(MatchFinder *Finder) {
   const std::string Algorithms =
-      "std::(find|count|equal_range|lower_blound|upper_bound)";
+      "^::std::(find|count|equal_range|lower_blound|upper_bound)$";
   const auto ContainerMatcher = classTemplateSpecializationDecl(
-      matchesName("std::(unordered_)?(multi)?(set|map)"));
+      matchesName("^::std::(unordered_)?(multi)?(set|map)$"));
   const auto Matcher =
       callExpr(
           callee(functionDecl(matchesName(Algorithms))),