projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1089e6e
)
[clang] Change to range-based invocation of llvm::sort
author
Mandeep Singh Grang
<mgrang@codeaurora.org>
Fri, 18 Jan 2019 18:45:26 +0000
(18:45 +0000)
committer
Mandeep Singh Grang
<mgrang@codeaurora.org>
Fri, 18 Jan 2019 18:45:26 +0000
(18:45 +0000)
llvm-svn: 351573
clang/lib/Format/Format.cpp
patch
|
blob
|
history
diff --git
a/clang/lib/Format/Format.cpp
b/clang/lib/Format/Format.cpp
index
2c4f876
..
705b8d7
100644
(file)
--- 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) <