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:
0ccb256
)
[clang-format] Apply a clang-tidy suggestion, NFC
author
Krasimir Georgiev
<krasimir@google.com>
Thu, 9 Nov 2017 15:12:17 +0000
(15:12 +0000)
committer
Krasimir Georgiev
<krasimir@google.com>
Thu, 9 Nov 2017 15:12:17 +0000
(15:12 +0000)
llvm-svn: 317793
clang/lib/Format/Format.cpp
patch
|
blob
|
history
diff --git
a/clang/lib/Format/Format.cpp
b/clang/lib/Format/Format.cpp
index
2252dd9
..
dfeb5d9
100644
(file)
--- a/
clang/lib/Format/Format.cpp
+++ b/
clang/lib/Format/Format.cpp
@@
-466,7
+466,7
@@
template <> struct DocumentListTraits<std::vector<FormatStyle>> {
if (Index >= Seq.size()) {
assert(Index == Seq.size());
FormatStyle Template;
- if (
Seq.size() > 0
&& Seq[0].Language == FormatStyle::LK_None) {
+ if (
!Seq.empty()
&& Seq[0].Language == FormatStyle::LK_None) {
Template = Seq[0];
} else {
Template = *((const FormatStyle *)IO.getContext());