diff options
author | Kazu Hirata <kazu@google.com> | 2022-09-03 11:17:37 -0700 |
---|---|---|
committer | Kazu Hirata <kazu@google.com> | 2022-09-03 11:17:37 -0700 |
commit | 89f1433225b05b993b9b3f0b8c3a282ec070ac23 (patch) | |
tree | 63ee6caf828890f8fcde2e995a3e1354d0f024d3 /clang-tools-extra/clang-tidy/misc/ConfusableIdentifierCheck.cpp | |
parent | 3850edd9e0c7a96b6001b13f54383e49fe0c7ecc (diff) | |
download | llvm-89f1433225b05b993b9b3f0b8c3a282ec070ac23.zip llvm-89f1433225b05b993b9b3f0b8c3a282ec070ac23.tar.gz llvm-89f1433225b05b993b9b3f0b8c3a282ec070ac23.tar.bz2 |
Use llvm::lower_bound (NFC)
Diffstat (limited to 'clang-tools-extra/clang-tidy/misc/ConfusableIdentifierCheck.cpp')
-rw-r--r-- | clang-tools-extra/clang-tidy/misc/ConfusableIdentifierCheck.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
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 { |