mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
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:
@@ -625,7 +625,7 @@ static double combinedScore(const Options &options, double matchScore,
|
||||
|
||||
static int compareResultName(Item &a, Item &b) {
|
||||
// Sort first by filter name (case-insensitive).
|
||||
if (int primary = StringRef(a.name).compare_lower(b.name))
|
||||
if (int primary = StringRef(a.name).compare_insensitive(b.name))
|
||||
return primary;
|
||||
|
||||
// Next, sort by full description text.
|
||||
|
||||
Reference in New Issue
Block a user