From 89f1433225b05b993b9b3f0b8c3a282ec070ac23 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Sat, 3 Sep 2022 11:17:37 -0700 Subject: Use llvm::lower_bound (NFC) --- clang-tools-extra/clang-tidy/misc/ConfusableIdentifierCheck.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'clang-tools-extra/clang-tidy/misc/ConfusableIdentifierCheck.cpp') diff --git a/clang-tools-extra/clang-tidy/misc/ConfusableIdentifierCheck.cpp b/clang-tools-extra/clang-tidy/misc/ConfusableIdentifierCheck.cpp index 556d761..aa8300c 100644 --- a/clang-tools-extra/clang-tidy/misc/ConfusableIdentifierCheck.cpp +++ b/clang-tools-extra/clang-tidy/misc/ConfusableIdentifierCheck.cpp @@ -68,10 +68,9 @@ std::string ConfusableIdentifierCheck::skeleton(StringRef Name) { } StringRef Key(Prev, Curr - Prev); - auto Where = std::lower_bound(std::begin(ConfusableEntries), - std::end(ConfusableEntries), CodePoint, - [](decltype(ConfusableEntries[0]) x, - UTF32 y) { return x.codepoint < y; }); + auto Where = llvm::lower_bound(ConfusableEntries, CodePoint, + [](decltype(ConfusableEntries[0]) x, + UTF32 y) { return x.codepoint < y; }); if (Where == std::end(ConfusableEntries) || CodePoint != Where->codepoint) { Skeleton.append(Prev, Curr); } else { -- cgit v1.1