[PATCH] D85843: Add "status" to the list of absl libraries.
Vy Nguyen via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Aug 12 09:25:46 PDT 2020
oontvoo created this revision.
oontvoo added a reviewer: sbenza.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
oontvoo requested review of this revision.
The Abseil-NoInternalDependenciesCheck currently mistakenly triggers on any usage of internal helpers even if it is within absl/status.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D85843
Files:
clang-tools-extra/clang-tidy/abseil/AbseilMatcher.h
Index: clang-tools-extra/clang-tidy/abseil/AbseilMatcher.h
===================================================================
--- clang-tools-extra/clang-tidy/abseil/AbseilMatcher.h
+++ clang-tools-extra/clang-tidy/abseil/AbseilMatcher.h
@@ -50,8 +50,8 @@
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); });
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D85843.285112.patch
Type: text/x-patch
Size: 802 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200812/f028b597/attachment.bin>
More information about the cfe-commits
mailing list