From 1696bb65233cdbef0a1138175cd540fc1b86e540 Mon Sep 17 00:00:00 2001 From: Krasimir Georgiev Date: Thu, 9 Nov 2017 15:12:17 +0000 Subject: [PATCH] [clang-format] Apply a clang-tidy suggestion, NFC llvm-svn: 317793 --- clang/lib/Format/Format.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clang/lib/Format/Format.cpp b/clang/lib/Format/Format.cpp index 2252dd9..dfeb5d9 100644 --- a/clang/lib/Format/Format.cpp +++ b/clang/lib/Format/Format.cpp @@ -466,7 +466,7 @@ template <> struct DocumentListTraits> { 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()); -- 2.7.4