Add "profiling" to the list of absl libraries.
Reviewed By: ymandel Differential Revision: https://reviews.llvm.org/D109470
This commit is contained in:
parent
9af8f1b18e
commit
e976fc61ec
|
@ -47,15 +47,11 @@ AST_POLYMORPHIC_MATCHER(
|
||||||
if (PrefixPosition == StringRef::npos)
|
if (PrefixPosition == StringRef::npos)
|
||||||
return false;
|
return false;
|
||||||
Path = Path.drop_front(PrefixPosition + AbslPrefix.size());
|
Path = Path.drop_front(PrefixPosition + AbslPrefix.size());
|
||||||
static const char *AbseilLibraries[] = {"algorithm", "base",
|
static const char *AbseilLibraries[] = {
|
||||||
"container", "debugging",
|
"algorithm", "base", "container", "debugging", "flags",
|
||||||
"flags", "hash",
|
"hash", "iterator", "memory", "meta", "numeric",
|
||||||
"iterator", "memory",
|
"profiling", "random", "status", "strings", "synchronization",
|
||||||
"meta", "numeric",
|
"time", "types", "utility"};
|
||||||
"random", "status",
|
|
||||||
"strings", "synchronization",
|
|
||||||
"time", "types",
|
|
||||||
"utility"};
|
|
||||||
return llvm::any_of(AbseilLibraries, [&](const char *Library) {
|
return llvm::any_of(AbseilLibraries, [&](const char *Library) {
|
||||||
return Path.startswith(Library);
|
return Path.startswith(Library);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue