diff options
author | Fangrui Song <maskray@google.com> | 2019-07-03 08:13:17 +0000 |
---|---|---|
committer | Fangrui Song <maskray@google.com> | 2019-07-03 08:13:17 +0000 |
commit | 7264a474b7c808e7d3cf44a4e7c0142281ca3cdf (patch) | |
tree | fba8d3c60cf164de08531ba93d8e96b115605e86 /clang/lib/Tooling/InterpolatingCompilationDatabase.cpp | |
parent | 1f6d9845d8f2e0e664b0b03488588010adf39b3f (diff) | |
download | bcm5719-llvm-7264a474b7c808e7d3cf44a4e7c0142281ca3cdf.tar.gz bcm5719-llvm-7264a474b7c808e7d3cf44a4e7c0142281ca3cdf.zip |
Change std::{lower,upper}_bound to llvm::{lower,upper}_bound or llvm::partition_point. NFC
llvm-svn: 365006
Diffstat (limited to 'clang/lib/Tooling/InterpolatingCompilationDatabase.cpp')
-rw-r--r-- | clang/lib/Tooling/InterpolatingCompilationDatabase.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/lib/Tooling/InterpolatingCompilationDatabase.cpp b/clang/lib/Tooling/InterpolatingCompilationDatabase.cpp index a467d1318e2..53c8dd448fd 100644 --- a/clang/lib/Tooling/InterpolatingCompilationDatabase.cpp +++ b/clang/lib/Tooling/InterpolatingCompilationDatabase.cpp @@ -478,8 +478,7 @@ private: ArrayRef<SubstringAndIndex> Idx) const { assert(!Idx.empty()); // Longest substring match will be adjacent to a direct lookup. - auto It = - std::lower_bound(Idx.begin(), Idx.end(), SubstringAndIndex{Key, 0}); + auto It = llvm::lower_bound(Idx, SubstringAndIndex{Key, 0}); if (It == Idx.begin()) return *It; if (It == Idx.end()) |