forked from OSchip/llvm-project
[clang-format] Apply a clang-tidy suggestion, NFC
llvm-svn: 317793
This commit is contained in:
parent
0ccb256dae
commit
1696bb6523
|
@ -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());
|
||||
|
|
Loading…
Reference in New Issue