llvm::StringRef compare_lower -> compare_insensitive

The `compare_lower` API was replaced with `compare_insensitive` in llvm
commit 2e4a2b8430aca6f7aef8100a5ff81ca0328d03f9.

git clang-format ran.

(cherry picked from commit aca2de95ee)
This commit is contained in:
Evan Wilde
2021-06-30 10:46:14 -07:00
committed by Eric Miotto
parent 42ff140171
commit 2c04be2724
6 changed files with 23 additions and 20 deletions

View File

@@ -207,8 +207,9 @@ void swift::ide::collectModuleGroups(ModuleDecl *M,
for (auto File : M->getFiles()) {
File->collectAllGroups(Into);
}
std::sort(Into.begin(), Into.end(),
[](StringRef L, StringRef R) { return L.compare_lower(R) < 0; });
std::sort(Into.begin(), Into.end(), [](StringRef L, StringRef R) {
return L.compare_insensitive(R) < 0;
});
}
/// Determine whether the given extension has a Clang node that