[NFC][clang-tidy] Put abseil headers in alphabetical order
authorNathan James <n.james93@hotmail.co.uk>
Tue, 18 Aug 2020 14:52:37 +0000 (15:52 +0100)
committerNathan James <n.james93@hotmail.co.uk>
Tue, 18 Aug 2020 14:52:47 +0000 (15:52 +0100)
clang-tools-extra/clang-tidy/abseil/AbseilMatcher.h

index f58ff5b..335c333 100644 (file)
@@ -47,14 +47,18 @@ AST_POLYMORPHIC_MATCHER(
   if (PrefixPosition == StringRef::npos)
     return false;
   Path = Path.drop_front(PrefixPosition + AbslPrefix.size());
-  static const char *AbseilLibraries[] = {
-      "algorithm", "base",     "container",       "debugging", "flags",
-      "hash",      "iterator", "memory",          "meta",      "numeric",
-      "random",    "strings",  "synchronization", "status",    "time",
-      "types",     "utility"};
-  return std::any_of(
-      std::begin(AbseilLibraries), std::end(AbseilLibraries),
-      [&](const char *Library) { return Path.startswith(Library); });
+  static const char *AbseilLibraries[] = {"algorithm", "base",
+                                          "container", "debugging",
+                                          "flags",     "hash",
+                                          "iterator",  "memory",
+                                          "meta",      "numeric",
+                                          "random",    "status",
+                                          "strings",   "synchronization",
+                                          "time",      "types",
+                                          "utility"};
+  return llvm::any_of(AbseilLibraries, [&](const char *Library) {
+    return Path.startswith(Library);
+  });
 }
 
 } // namespace ast_matchers