From: Krasimir Georgiev Date: Thu, 9 Nov 2017 15:12:17 +0000 (+0000) Subject: [clang-format] Apply a clang-tidy suggestion, NFC X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=12524441b438dd0a8967304e644c8b4a6ee362a4;p=clang [clang-format] Apply a clang-tidy suggestion, NFC git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@317793 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Format/Format.cpp b/lib/Format/Format.cpp index 2252dd9743..dfeb5d9d07 100644 --- a/lib/Format/Format.cpp +++ b/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());