[clang-tools-extra] r341488 - [clang-tidy] minor bug fix to AbseilMatcher.h

Eric Liu via cfe-commits cfe-commits at lists.llvm.org
Wed Sep 5 12:01:34 PDT 2018


Author: ioeric
Date: Wed Sep  5 12:01:34 2018
New Revision: 341488

URL: http://llvm.org/viewvc/llvm-project?rev=341488&view=rev
Log:
[clang-tidy] minor bug fix to AbseilMatcher.h

This missing directory is not yet released, but is causing some problems
internally. It's gonna be released eventually and received permission to
include it here. This matcher will also be periodically updated by my
team as we have more releases and or problems internally.

Patch by Hugo Gonzalez!

Differential Revision: https://reviews.llvm.org/D51699

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

Modified: clang-tools-extra/trunk/clang-tidy/abseil/AbseilMatcher.h
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clang-tidy/abseil/AbseilMatcher.h?rev=341488&r1=341487&r2=341488&view=diff
==============================================================================
--- clang-tools-extra/trunk/clang-tidy/abseil/AbseilMatcher.h (original)
+++ clang-tools-extra/trunk/clang-tidy/abseil/AbseilMatcher.h Wed Sep  5 12:01:34 2018
@@ -48,10 +48,19 @@ AST_POLYMORPHIC_MATCHER(
   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); });




More information about the cfe-commits mailing list