Skip to content

Commit

Permalink
Fix broken cppcheck inline-suppressions due to clang-format
Browse files Browse the repository at this point in the history
Signed-off-by: Steffen Vogel <[email protected]>
  • Loading branch information
stv0g committed Feb 26, 2024
1 parent e539ffb commit 6a412eb
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
3 changes: 2 additions & 1 deletion dpsim/src/pybind/DPComponents.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -402,8 +402,9 @@ void addDPPh1Components(py::module_ mDPPh1) {
"loglevel"_a = CPS::Logger::Level::off)
.def(py::init<std::string, std::string, CPS::Logger::Level, CPS::Bool>(),
"uid"_a, "name"_a, "loglevel"_a = CPS::Logger::Level::off,
// cppcheck-suppress assignBoolToPointer
"with_resistive_losses"_a =
false) // cppcheck-suppress assignBoolToPointer
false)
.def("set_parameters",
py::overload_cast<CPS::Real, CPS::Real, CPS::Real, CPS::Real,
CPS::Real, CPS::Real>(
Expand Down
3 changes: 2 additions & 1 deletion dpsim/src/pybind/EMTComponents.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -392,8 +392,9 @@ void addEMTPh3Components(py::module_ mEMTPh3) {
"loglevel"_a = CPS::Logger::Level::off)
.def(py::init<std::string, std::string, CPS::Logger::Level, CPS::Bool>(),
"uid"_a, "name"_a, "loglevel"_a = CPS::Logger::Level::off,
// cppcheck-suppress assignBoolToPointer
"with_resistive_losses"_a =
false) // cppcheck-suppress assignBoolToPointer
false)
.def("set_parameters", &CPS::EMT::Ph3::Transformer::setParameters,
"nom_voltage_end_1"_a, "nom_voltage_end_2"_a, "rated_power"_a,
"ratio_abs"_a, "ratio_phase"_a, "resistance"_a, "inductance"_a)
Expand Down
4 changes: 2 additions & 2 deletions dpsim/src/pybind/SPComponents.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -333,8 +333,8 @@ void addSPPh1Components(py::module_ mSPPh1) {
"loglevel"_a = CPS::Logger::Level::off)
.def(py::init<std::string, std::string, CPS::Logger::Level, CPS::Bool>(),
"uid"_a, "name"_a, "loglevel"_a = CPS::Logger::Level::off,
"with_resistive_losses"_a =
false) // cppcheck-suppress assignBoolToPointer
// cppcheck-suppress assignBoolToPointer
"with_resistive_losses"_a = false)
.def("set_parameters",
py::overload_cast<CPS::Real, CPS::Real, CPS::Real, CPS::Real,
CPS::Real, CPS::Real>(
Expand Down

0 comments on commit 6a412eb

Please sign in to comment.