[clang] Change to range-based invocation of llvm::sort

llvm-svn: 351573
This commit is contained in:
Mandeep Singh Grang 2019-01-18 18:45:26 +00:00
parent 1089e6e9e4
commit d36da8a0ab
1 changed files with 1 additions and 1 deletions

View File

@ -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) <