forked from OSchip/llvm-project
[clang-tidy] minor bug fix to AbseilMatcher.h
This missing directory is not yet released, but is causing some problems internally. It's gonna be released eventually and received permission to include it here. This matcher will also be periodically updated by my team as we have more releases and or problems internally. Patch by Hugo Gonzalez! Differential Revision: https://reviews.llvm.org/D51699 llvm-svn: 341488
This commit is contained in:
parent
ef1b1b5d17
commit
d2eb03aec8
|
@ -48,10 +48,19 @@ AST_POLYMORPHIC_MATCHER(
|
|||
if (PrefixPosition == StringRef::npos)
|
||||
return false;
|
||||
Path = Path.drop_front(PrefixPosition + AbslPrefix.size());
|
||||
static const char *AbseilLibraries[] = {
|
||||
"algorithm", "base", "container", "debugging",
|
||||
"memory", "meta", "numeric", "strings",
|
||||
"synchronization", "time", "types", "utility"};
|
||||
static const char *AbseilLibraries[] = {"algorithm",
|
||||
"base",
|
||||
"container",
|
||||
"debugging",
|
||||
"flags"
|
||||
"memory",
|
||||
"meta",
|
||||
"numeric",
|
||||
"strings",
|
||||
"synchronization",
|
||||
"time",
|
||||
"types",
|
||||
"utility"};
|
||||
return std::any_of(
|
||||
std::begin(AbseilLibraries), std::end(AbseilLibraries),
|
||||
[&](const char *Library) { return Path.startswith(Library); });
|
||||
|
|
Loading…
Reference in New Issue