[clang] Change to range-based invocation of llvm::sort
llvm-svn: 351573
This commit is contained in:
parent
1089e6e9e4
commit
d36da8a0ab
|
@ -1868,7 +1868,7 @@ static void sortJavaImports(const FormatStyle &Style,
|
|||
JavaImportGroups.push_back(
|
||||
findJavaImportGroup(Style, Imports[i].Identifier));
|
||||
}
|
||||
llvm::sort(Indices.begin(), Indices.end(), [&](unsigned LHSI, unsigned RHSI) {
|
||||
llvm::sort(Indices, [&](unsigned LHSI, unsigned RHSI) {
|
||||
// Negating IsStatic to push static imports above non-static imports.
|
||||
return std::make_tuple(!Imports[LHSI].IsStatic, JavaImportGroups[LHSI],
|
||||
Imports[LHSI].Identifier) <
|
||||
|
|
Loading…
Reference in New Issue