This revision was automatically updated to reflect the committed changes. Closed by commit rGe976fc61ecd9: Add "profiling" to the list of absl libraries. (authored by nilayvaish, committed by ymandel).
Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D109470/new/ https://reviews.llvm.org/D109470 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 @@ -47,15 +47,11 @@ 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); });
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 @@ -47,15 +47,11 @@ 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); });
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits