[clang-tools-extra] 114c9fa - Add "status" to the list of absl libraries.

Vy Nguyen via cfe-commits cfe-commits at lists.llvm.org
Thu Aug 13 13:08:36 PDT 2020


Author: Vy Nguyen
Date: 2020-08-13T16:08:14-04:00
New Revision: 114c9fa0e46f7bf1d05d92da70da116b19f16911

URL: https://github.com/llvm/llvm-project/commit/114c9fa0e46f7bf1d05d92da70da116b19f16911
DIFF: https://github.com/llvm/llvm-project/commit/114c9fa0e46f7bf1d05d92da70da116b19f16911.diff

LOG: Add "status" to the list of absl libraries.

The Abseil-NoInternalDependenciesCheck currently mistakenly triggers on any usage of internal helpers even if it is within absl/status.

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

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/clang-tools-extra/clang-tidy/abseil/AbseilMatcher.h b/clang-tools-extra/clang-tidy/abseil/AbseilMatcher.h
index 3f7529d1bbd0..f58ff5bc44b2 100644
--- a/clang-tools-extra/clang-tidy/abseil/AbseilMatcher.h
+++ b/clang-tools-extra/clang-tidy/abseil/AbseilMatcher.h
@@ -50,8 +50,8 @@ AST_POLYMORPHIC_MATCHER(
   static const char *AbseilLibraries[] = {
       "algorithm", "base",     "container",       "debugging", "flags",
       "hash",      "iterator", "memory",          "meta",      "numeric",
-      "random",    "strings",  "synchronization", "time",      "types",
-      "utility"};
+      "random",    "strings",  "synchronization", "status",    "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