diff --git a/mex/sources/libkorder/dynamic_abstract_class.hh b/mex/sources/libkorder/dynamic_abstract_class.hh index 5f82c1810d8cf83876aa4083133c86550e39b9b8..38d4ff650339fecb6a9dc1523bdc51ae9a6a8d26 100644 --- a/mex/sources/libkorder/dynamic_abstract_class.hh +++ b/mex/sources/libkorder/dynamic_abstract_class.hh @@ -47,7 +47,9 @@ public: dynamic_g1_sparse_rowval_mx {dynamic_g1_sparse_rowval_mx_arg}, dynamic_g1_sparse_colval_mx {dynamic_g1_sparse_colval_mx_arg}, dynamic_g1_sparse_colptr_mx {dynamic_g1_sparse_colptr_mx_arg}, - dynamic_gN_sparse_indices {move(dynamic_gN_sparse_indices_arg)} {}; + dynamic_gN_sparse_indices {move(dynamic_gN_sparse_indices_arg)} + { + } virtual ~DynamicModelAC() = default; virtual void eval(const Vector& y, const Vector& x, const Vector& params, const Vector& ySteady, Vector& residual, const std::map<int, int>& dynToDynpp, diff --git a/mex/sources/libkorder/dynamic_dll.cc b/mex/sources/libkorder/dynamic_dll.cc index b5317d3d75cca50b931a5506d897a36aa406cf0f..3c64141f0b59e300a6771323df32091cca4858d0 100644 --- a/mex/sources/libkorder/dynamic_dll.cc +++ b/mex/sources/libkorder/dynamic_dll.cc @@ -40,16 +40,11 @@ DynamicModelDLL::DynamicModelDLL(const std::string& modName, int order_arg, for (int o {0}; o <= order; o++) { std::string func_name {"dynamic_"s + (o == 0 ? "resid" : "g"s + std::to_string(o))}; - std::string mex_filename - { + std::string mex_filename { #if !defined(__CYGWIN32__) && !defined(_WIN32) - "./"s + + "./"s + #endif - "+"s + modName + "/+sparse/" + func_name + MEXEXT - // clang-format off - // As of Clang 16, the RemoveSemicolon option incorrectly removes the following semicolon - }; - // clang-format on + "+"s + modName + "/+sparse/" + func_name + MEXEXT}; mex_handle_t handle {load_mex(mex_filename)}; if (handle) diff --git a/mex/sources/libkorder/sylv/GeneralMatrix.hh b/mex/sources/libkorder/sylv/GeneralMatrix.hh index aec8c139e0a02b78a68aeea2b4dc46d606ae61ec..54c077c115b398d40884565bfdf1a6df071d7575 100644 --- a/mex/sources/libkorder/sylv/GeneralMatrix.hh +++ b/mex/sources/libkorder/sylv/GeneralMatrix.hh @@ -44,7 +44,9 @@ private: T& orig; public: - TransposedMatrix(T& orig_arg) : orig {orig_arg} {}; + TransposedMatrix(T& orig_arg) : orig {orig_arg} + { + } }; // Syntactic sugar for representing a transposed matrix diff --git a/mex/sources/libkorder/sylv/QuasiTriangular.hh b/mex/sources/libkorder/sylv/QuasiTriangular.hh index d83aaf0a98a34715ea6cb2b14b07498cd9c64513..020b00fd3f6b429badfc9ed6314ef44fbdc70d73 100644 --- a/mex/sources/libkorder/sylv/QuasiTriangular.hh +++ b/mex/sources/libkorder/sylv/QuasiTriangular.hh @@ -267,7 +267,9 @@ class _column_iter : public _matrix_iter<_TRef, _TPtr> public: _column_iter(_TPtr base, int ds, bool r, int rw) : - _matrix_iter<_TRef, _TPtr>(base, ds, r), row(rw) {}; + _matrix_iter<_TRef, _TPtr>(base, ds, r), row(rw) + { + } _Self& operator++() override { @@ -298,8 +300,9 @@ class _row_iter : public _matrix_iter<_TRef, _TPtr> int col; public: - _row_iter(_TPtr base, int ds, bool r, int cl) : - _matrix_iter<_TRef, _TPtr>(base, ds, r), col(cl) {}; + _row_iter(_TPtr base, int ds, bool r, int cl) : _matrix_iter<_TRef, _TPtr>(base, ds, r), col(cl) + { + } _Self& operator++() override { diff --git a/mex/sources/libkorder/sylv/SchurDecompEig.hh b/mex/sources/libkorder/sylv/SchurDecompEig.hh index c5a74c47bada0e0f4d6f432e6c57f302be5582fc..8c82f8b85a47ff118387390b8669bffea5e2f4f9 100644 --- a/mex/sources/libkorder/sylv/SchurDecompEig.hh +++ b/mex/sources/libkorder/sylv/SchurDecompEig.hh @@ -33,7 +33,9 @@ public: SchurDecompEig(const SqSylvMatrix& m) : SchurDecomp(m) { } - SchurDecompEig(const QuasiTriangular& tr) : SchurDecomp(tr) {}; + SchurDecompEig(const QuasiTriangular& tr) : SchurDecomp(tr) + { + } SchurDecompEig(QuasiTriangular& tr) : SchurDecomp(tr) { } diff --git a/mex/sources/ms-sbvar/modify_for_mex.h b/mex/sources/ms-sbvar/modify_for_mex.h index e5655fdf609d075dc4dd5d84689eabea740f1be6..342a9571a2553562a2f4960cc9ba481eb1886e77 100644 --- a/mex/sources/ms-sbvar/modify_for_mex.h +++ b/mex/sources/ms-sbvar/modify_for_mex.h @@ -53,7 +53,6 @@ extern "C" #else _Noreturn #endif - void - msExit(int status); + void msExit(int status); #endif diff --git a/mex/sources/perfect_foresight_problem/perfect_foresight_problem.cc b/mex/sources/perfect_foresight_problem/perfect_foresight_problem.cc index 31b700909fd82852d4149294145d5f493f804b55..7cd7252f2039fbfe8fb528c42ead0545f66ded73 100644 --- a/mex/sources/perfect_foresight_problem/perfect_foresight_problem.cc +++ b/mex/sources/perfect_foresight_problem/perfect_foresight_problem.cc @@ -220,7 +220,7 @@ mexFunction(int nlhs, mxArray* plhs[], int nrhs, const mxArray* prhs[]) g1_sparse_rowval_mx, g1_sparse_colval_mx, g1_sparse_colptr_mx, linear, compute_jacobian); - // Main computing loop + // Main computing loop #pragma omp for for (mwIndex T = 0; T < periods; T++) {