mirror of
https://github.com/google/benchmark.git
synced 2024-11-26 16:31:54 +00:00
Add braces for one line conditionals and loops
This commit is contained in:
parent
e97a96f9e7
commit
ba1becca1a
|
@ -418,11 +418,12 @@ bool BenchmarkFamilies::FindBenchmarks(
|
||||||
instance.name += StringPrintF("/threads:%d", instance.threads);
|
instance.name += StringPrintF("/threads:%d", instance.threads);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (re.Match(instance.name))
|
if (re.Match(instance.name)) {
|
||||||
benchmarks->push_back(instance);
|
benchmarks->push_back(instance);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -778,9 +779,10 @@ void PrintBenchmarkList() {
|
||||||
auto families = BenchmarkFamilies::GetInstance();
|
auto families = BenchmarkFamilies::GetInstance();
|
||||||
if (!families->FindBenchmarks(".", &benchmarks)) return;
|
if (!families->FindBenchmarks(".", &benchmarks)) return;
|
||||||
|
|
||||||
for (const internal::Benchmark::Instance& benchmark : benchmarks)
|
for (const internal::Benchmark::Instance& benchmark : benchmarks) {
|
||||||
std::cout << benchmark.name << "\n";
|
std::cout << benchmark.name << "\n";
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void RunMatchingBenchmarks(const std::string& spec,
|
void RunMatchingBenchmarks(const std::string& spec,
|
||||||
BenchmarkReporter* reporter) {
|
BenchmarkReporter* reporter) {
|
||||||
|
|
Loading…
Reference in a new issue