forked from OSchip/llvm-project
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)
|
||||
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);
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue