Skip to content
Snippets Groups Projects
Verified Commit 979002a2 authored by Sébastien Villemot's avatar Sébastien Villemot
Browse files

Bump to clang-format 19

parent 49b08642
Branches
No related tags found
No related merge requests found
......@@ -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,
......
......
......@@ -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 +
#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)
......
......
......@@ -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
......
......
......@@ -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
{
......
......
......@@ -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)
{
}
......
......
......@@ -53,7 +53,6 @@ extern "C"
#else
_Noreturn
#endif
void
msExit(int status);
void msExit(int status);
#endif
File changed. Contains only whitespace changes. Show whitespace changes.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment