summaryrefslogtreecommitdiffstats
path: root/clang/lib/Format/Format.cpp
diff options
context:
space:
mode:
authorKrasimir Georgiev <krasimir@google.com>2017-11-09 15:12:17 +0000
committerKrasimir Georgiev <krasimir@google.com>2017-11-09 15:12:17 +0000
commit1696bb65233cdbef0a1138175cd540fc1b86e540 (patch)
treeba5b89daa207d508b188f19f78b2884a2c067b82 /clang/lib/Format/Format.cpp
parent0ccb256dae110390146c09e4ccbda360a352f6f1 (diff)
downloadbcm5719-llvm-1696bb65233cdbef0a1138175cd540fc1b86e540.tar.gz
bcm5719-llvm-1696bb65233cdbef0a1138175cd540fc1b86e540.zip
[clang-format] Apply a clang-tidy suggestion, NFC
llvm-svn: 317793
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 2252dd97436..dfeb5d9d079 100644
--- 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());
OpenPOWER on IntegriCloud