Commit ba1becca by Eric Fiselier

Add braces for one line conditionals and loops

parent e97a96f9
......@@ -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,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment