llvm::StringRef equals_lower -> equals_insensitive

The `equals_lower` API was replaced with `equals_insensitive` in llvm
commit 2e4a2b8430aca6f7aef8100a5ff81ca0328d03f9 and
3eed57e7ef7da5eda765ccc19fd26fb8dfcd8d41.

Ran git clang-format.

(cherry picked from commit e21e70a6bf)
This commit is contained in:
Evan Wilde
2021-06-30 10:49:16 -07:00
committed by Eric Miotto
parent 0919c2cd70
commit 42ff140171
6 changed files with 15 additions and 14 deletions

View File

@@ -544,7 +544,8 @@ void CodeCompletionOrganizer::Impl::addCompletionsWithFilter(
match = completion->getName().startswith_insensitive(filterText);
}
bool isExactMatch = match && completion->getName().equals_lower(filterText);
bool isExactMatch =
match && completion->getName().equals_insensitive(filterText);
if (isExactMatch) {
if (!exactMatch) { // first match