reformat unittest tree with clang-format

This commit is contained in:
Axel Kohlmeyer
2021-08-23 17:06:30 -04:00
parent 0f8b331d8f
commit 6bc8da05b9
37 changed files with 501 additions and 453 deletions

View File

@ -41,15 +41,13 @@ bool read_yaml_file(const char *infile, TestConfig &config)
}
// write out common header items for yaml files
void write_yaml_header(YamlWriter *writer,
TestConfig *cfg,
const char *version)
void write_yaml_header(YamlWriter *writer, TestConfig *cfg, const char *version)
{
// lammps_version
writer->emit("lammps_version", version);
// date_generated
std::time_t now = time(NULL);
std::time_t now = time(NULL);
std::string block = trim(ctime(&now));
writer->emit("date_generated", block);
@ -59,8 +57,10 @@ void write_yaml_header(YamlWriter *writer,
// skip tests
block.clear();
for (auto &skip : cfg->skip_tests) {
if (block.empty()) block = skip;
else block += " " + skip;
if (block.empty())
block = skip;
else
block += " " + skip;
}
writer->emit("skip_tests", block);