summaryrefslogtreecommitdiffstats
path: root/clang/lib/Format/Format.cpp
diff options
context:
space:
mode:
authorMandeep Singh Grang <mgrang@codeaurora.org>2019-01-18 18:45:26 +0000
committerMandeep Singh Grang <mgrang@codeaurora.org>2019-01-18 18:45:26 +0000
commitd36da8a0ab9fd6fbee9f6f923247ed33192856fa (patch)
treece2471d405edebd287e870b8222a7b25fc1570eb /clang/lib/Format/Format.cpp
parent1089e6e9e411710416632707d705858ef27d683c (diff)
downloadbcm5719-llvm-d36da8a0ab9fd6fbee9f6f923247ed33192856fa.tar.gz
bcm5719-llvm-d36da8a0ab9fd6fbee9f6f923247ed33192856fa.zip
[clang] Change to range-based invocation of llvm::sort
llvm-svn: 351573
Diffstat (limited to 'clang/lib/Format/Format.cpp')
-rw-r--r--clang/lib/Format/Format.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Format/Format.cpp b/clang/lib/Format/Format.cpp
index 2c4f8760540..705b8d7a1a9 100644
--- a/clang/lib/Format/Format.cpp
+++ b/clang/lib/Format/Format.cpp
@@ -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) <
OpenPOWER on IntegriCloud