From e1351537ffa3acff2ed658d6da7728fef76c2de9 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Fri, 19 Jan 2024 18:34:15 +0000 Subject: [PATCH] Auto-format code using Clang-Format --- src/parser.cpp | 31 +++++++++++++++---------------- 1 file changed, 15 insertions(+), 16 deletions(-) diff --git a/src/parser.cpp b/src/parser.cpp index 80cee5a..2c4b834 100644 --- a/src/parser.cpp +++ b/src/parser.cpp @@ -306,7 +306,8 @@ namespace open_atmos return { status, component }; } - std::pair ParseArrhenius(const json& object, const std::vector& existing_species, const std::vector existing_phases) + std::pair + ParseArrhenius(const json& object, const std::vector& existing_species, const std::vector existing_phases) { ConfigParseStatus status = ConfigParseStatus::Success; types::Arrhenius arrhenius; @@ -399,8 +400,7 @@ namespace open_atmos } std::string gas_phase = object[validation::keys.gas_phase].get(); - auto it = - std::find_if(existing_phases.begin(), existing_phases.end(), [&gas_phase](const auto& phase) { return phase.name == gas_phase; }); + auto it = std::find_if(existing_phases.begin(), existing_phases.end(), [&gas_phase](const auto& phase) { return phase.name == gas_phase; }); if (status == ConfigParseStatus::Success && it == existing_phases.end()) { status = ConfigParseStatus::UnknownPhase; @@ -415,7 +415,8 @@ namespace open_atmos return { status, arrhenius }; } - std::pair ParseTroe(const json& object, const std::vector& existing_species, const std::vector existing_phases) + std::pair + ParseTroe(const json& object, const std::vector& existing_species, const std::vector existing_phases) { ConfigParseStatus status = ConfigParseStatus::Success; types::Troe troe; @@ -509,10 +510,8 @@ namespace open_atmos status = ConfigParseStatus::ReactionRequiresUnknownSpecies; } - std::string gas_phase = object[validation::keys.gas_phase].get(); - auto it = - std::find_if(existing_phases.begin(), existing_phases.end(), [&gas_phase](const auto& phase) { return phase.name == gas_phase; }); + auto it = std::find_if(existing_phases.begin(), existing_phases.end(), [&gas_phase](const auto& phase) { return phase.name == gas_phase; }); if (status == ConfigParseStatus::Success && it == existing_phases.end()) { status = ConfigParseStatus::UnknownPhase; @@ -527,7 +526,8 @@ namespace open_atmos return { status, troe }; } - std::pair ParseBranched(const json& object, const std::vector& existing_species, const std::vector existing_phases) + std::pair + ParseBranched(const json& object, const std::vector& existing_species, const std::vector existing_phases) { ConfigParseStatus status = ConfigParseStatus::Success; types::Branched branched; @@ -610,8 +610,7 @@ namespace open_atmos } std::string gas_phase = object[validation::keys.gas_phase].get(); - auto it = - std::find_if(existing_phases.begin(), existing_phases.end(), [&gas_phase](const auto& phase) { return phase.name == gas_phase; }); + auto it = std::find_if(existing_phases.begin(), existing_phases.end(), [&gas_phase](const auto& phase) { return phase.name == gas_phase; }); if (status == ConfigParseStatus::Success && it == existing_phases.end()) { status = ConfigParseStatus::UnknownPhase; @@ -627,7 +626,8 @@ namespace open_atmos return { status, branched }; } - std::pair ParseTunneling(const json& object, const std::vector& existing_species, const std::vector existing_phases) + std::pair + ParseTunneling(const json& object, const std::vector& existing_species, const std::vector existing_phases) { ConfigParseStatus status = ConfigParseStatus::Success; types::Tunneling tunneling; @@ -702,8 +702,7 @@ namespace open_atmos } std::string gas_phase = object[validation::keys.gas_phase].get(); - auto it = - std::find_if(existing_phases.begin(), existing_phases.end(), [&gas_phase](const auto& phase) { return phase.name == gas_phase; }); + auto it = std::find_if(existing_phases.begin(), existing_phases.end(), [&gas_phase](const auto& phase) { return phase.name == gas_phase; }); if (status == ConfigParseStatus::Success && it == existing_phases.end()) { status = ConfigParseStatus::UnknownPhase; @@ -795,7 +794,8 @@ namespace open_atmos return { status, surface }; } - std::pair ParsePhotolysis(const json& object, const std::vector existing_species, const std::vector existing_phases) + std::pair + ParsePhotolysis(const json& object, const std::vector existing_species, const std::vector existing_phases) { ConfigParseStatus status = ConfigParseStatus::Success; types::Photolysis photolysis; @@ -862,8 +862,7 @@ namespace open_atmos } std::string gas_phase = object[validation::keys.gas_phase].get(); - auto it = - std::find_if(existing_phases.begin(), existing_phases.end(), [&gas_phase](const auto& phase) { return phase.name == gas_phase; }); + auto it = std::find_if(existing_phases.begin(), existing_phases.end(), [&gas_phase](const auto& phase) { return phase.name == gas_phase; }); if (status == ConfigParseStatus::Success && it == existing_phases.end()) { status = ConfigParseStatus::UnknownPhase;