diff options
author | Fangrui Song <maskray@google.com> | 2018-10-20 17:53:42 +0000 |
---|---|---|
committer | Fangrui Song <maskray@google.com> | 2018-10-20 17:53:42 +0000 |
commit | 3117b17bc57c174ab44b42350eac2b2bc6f6dcd3 (patch) | |
tree | 521ba6cecfe4a31f613e29eb6eff7c63291e682e /clang/lib/Tooling/ASTDiff/ASTDiff.cpp | |
parent | 45b275409729919a0cc844aa2b34daf5534a107f (diff) | |
download | bcm5719-llvm-3117b17bc57c174ab44b42350eac2b2bc6f6dcd3.tar.gz bcm5719-llvm-3117b17bc57c174ab44b42350eac2b2bc6f6dcd3.zip |
Use llvm::{all,any,none}_of instead std::{all,any,none}_of. NFC
llvm-svn: 344859
Diffstat (limited to 'clang/lib/Tooling/ASTDiff/ASTDiff.cpp')
-rw-r--r-- | clang/lib/Tooling/ASTDiff/ASTDiff.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/clang/lib/Tooling/ASTDiff/ASTDiff.cpp b/clang/lib/Tooling/ASTDiff/ASTDiff.cpp index 9ff9a02a58a..592e8572c77 100644 --- a/clang/lib/Tooling/ASTDiff/ASTDiff.cpp +++ b/clang/lib/Tooling/ASTDiff/ASTDiff.cpp @@ -845,9 +845,8 @@ void ASTDiff::Impl::matchBottomUp(Mapping &M) const { } bool Matched = M.hasSrc(Id1); const Node &N1 = T1.getNode(Id1); - bool MatchedChildren = - std::any_of(N1.Children.begin(), N1.Children.end(), - [&](NodeId Child) { return M.hasSrc(Child); }); + bool MatchedChildren = llvm::any_of( + N1.Children, [&](NodeId Child) { return M.hasSrc(Child); }); if (Matched || !MatchedChildren) continue; NodeId Id2 = findCandidate(M, Id1); |