[PATCH] D51699: [clang-tidy] minor bug fix to AbseilMatcher.h

Eric Liu via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 5 12:05:21 PDT 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rL341488: [clang-tidy] minor bug fix to AbseilMatcher.h (authored by ioeric, committed by ).
Herald added a subscriber: llvm-commits.

Changed prior to commit:
  https://reviews.llvm.org/D51699?vs=164092&id=164096#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D51699

Files:
  clang-tools-extra/trunk/clang-tidy/abseil/AbseilMatcher.h


Index: clang-tools-extra/trunk/clang-tidy/abseil/AbseilMatcher.h
===================================================================
--- clang-tools-extra/trunk/clang-tidy/abseil/AbseilMatcher.h
+++ clang-tools-extra/trunk/clang-tidy/abseil/AbseilMatcher.h
@@ -48,10 +48,19 @@
   if (PrefixPosition == StringRef::npos)
     return false;
   Path = Path.drop_front(PrefixPosition + AbslPrefix.size());
-  static const char *AbseilLibraries[] = {
-      "algorithm",       "base", "container", "debugging",
-      "memory",          "meta", "numeric",   "strings",
-      "synchronization", "time", "types",     "utility"};
+  static const char *AbseilLibraries[] = {"algorithm",
+                                          "base",
+                                          "container",
+                                          "debugging",
+                                          "flags"
+                                          "memory",
+                                          "meta",
+                                          "numeric",
+                                          "strings",
+                                          "synchronization",
+                                          "time",
+                                          "types",
+                                          "utility"};
   return std::any_of(
       std::begin(AbseilLibraries), std::end(AbseilLibraries),
       [&](const char *Library) { return Path.startswith(Library); });


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D51699.164096.patch
Type: text/x-patch
Size: 1481 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180905/0740ced4/attachment.bin>


More information about the llvm-commits mailing list