From ba1becca1aa1f89281b823a2cc6282b3c553b1f3 Mon Sep 17 00:00:00 2001 From: Eric Fiselier Date: Tue, 31 Mar 2015 13:28:41 -0400 Subject: [PATCH] Add braces for one line conditionals and loops --- src/benchmark.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/benchmark.cc b/src/benchmark.cc index 4be4e488..64df38a5 100644 --- a/src/benchmark.cc +++ b/src/benchmark.cc @@ -418,8 +418,9 @@ bool BenchmarkFamilies::FindBenchmarks( instance.name += StringPrintF("/threads:%d", instance.threads); } - if (re.Match(instance.name)) + if (re.Match(instance.name)) { benchmarks->push_back(instance); + } } } } @@ -778,8 +779,9 @@ void PrintBenchmarkList() { auto families = BenchmarkFamilies::GetInstance(); if (!families->FindBenchmarks(".", &benchmarks)) return; - for (const internal::Benchmark::Instance& benchmark : benchmarks) + for (const internal::Benchmark::Instance& benchmark : benchmarks) { std::cout << benchmark.name << "\n"; + } } void RunMatchingBenchmarks(const std::string& spec,