[clang-tools-extra] e976fc6 - Add "profiling" to the list of absl libraries.
Yitzhak Mandelbaum via cfe-commits
cfe-commits at lists.llvm.org
Thu Sep 9 13:31:25 PDT 2021
Author: Nilay Vaish
Date: 2021-09-09T20:31:06Z
New Revision: e976fc61ecd9c789783129c1294e096f8b4b11b0
URL: https://github.com/llvm/llvm-project/commit/e976fc61ecd9c789783129c1294e096f8b4b11b0
DIFF: https://github.com/llvm/llvm-project/commit/e976fc61ecd9c789783129c1294e096f8b4b11b0.diff
LOG: Add "profiling" to the list of absl libraries.
Reviewed By: ymandel
Differential Revision: https://reviews.llvm.org/D109470
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 335c333573f43..576cbc5711f4f 100644
--- a/clang-tools-extra/clang-tidy/abseil/AbseilMatcher.h
+++ b/clang-tools-extra/clang-tidy/abseil/AbseilMatcher.h
@@ -47,15 +47,11 @@ 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", "status",
- "strings", "synchronization",
- "time", "types",
- "utility"};
+ static const char *AbseilLibraries[] = {
+ "algorithm", "base", "container", "debugging", "flags",
+ "hash", "iterator", "memory", "meta", "numeric",
+ "profiling", "random", "status", "strings", "synchronization",
+ "time", "types", "utility"};
return llvm::any_of(AbseilLibraries, [&](const char *Library) {
return Path.startswith(Library);
});
More information about the cfe-commits
mailing list