diff --git a/src/codegen/codegen_neuron_cpp_visitor.cpp b/src/codegen/codegen_neuron_cpp_visitor.cpp index 1b55d94792..301fc96b0b 100644 --- a/src/codegen/codegen_neuron_cpp_visitor.cpp +++ b/src/codegen/codegen_neuron_cpp_visitor.cpp @@ -454,7 +454,8 @@ void CodegenNeuronCppVisitor::print_mechanism_register() { } -void CodegenNeuronCppVisitor::print_mechanism_range_var_structure(bool [[maybe_unused]] print_initializers) { +void CodegenNeuronCppVisitor::print_mechanism_range_var_structure( + bool [[maybe_unused]] print_initializers) { printer->add_newline(2); printer->add_line("/* NEURON RANGE variables macro definitions */"); for (auto i = 0; i < codegen_float_variables.size(); ++i) { diff --git a/test/unit/codegen/codegen_neuron_cpp_visitor.cpp b/test/unit/codegen/codegen_neuron_cpp_visitor.cpp index b6cfe4a55a..9f759a5cef 100644 --- a/test/unit/codegen/codegen_neuron_cpp_visitor.cpp +++ b/test/unit/codegen/codegen_neuron_cpp_visitor.cpp @@ -231,8 +231,10 @@ void _nrn_mechanism_register_data_fields(Args&&... args) { std::string expected_initlists_s_var = "_slist1[0] = {4, 0};"; std::string expected_initlists_Ds_var = "_dlist1[0] = {7, 0};"; - REQUIRE_THAT(generated, ContainsSubstring(reindent_and_trim_text(expected_initlists_s_var))); - REQUIRE_THAT(generated, ContainsSubstring(reindent_and_trim_text(expected_initlists_Ds_var))); + REQUIRE_THAT(generated, + ContainsSubstring(reindent_and_trim_text(expected_initlists_s_var))); + REQUIRE_THAT(generated, + ContainsSubstring(reindent_and_trim_text(expected_initlists_Ds_var))); } THEN("Placeholder registration function is printed") { std::string expected_placeholder_reg = R"CODE(/** register channel with the simulator */