From 7aa46cb1325421c9f5ecff0cd5efe24dd434dda2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Villemot?= <sebastien@dynare.org> Date: Fri, 27 Dec 2024 16:00:32 +0100 Subject: [PATCH] Bump to clang-format 19 Also disable RemoveSemicolon option by default, since the clang-format manual states that these options can lead to incorrect formatting and thus their result should be carefully reviewed. --- .clang-format | 1 - mex/sources/ms-sbvar/modify_for_mex.h | 3 +-- .../perfect_foresight_problem/perfect_foresight_problem.cc | 2 +- preprocessor | 2 +- 4 files changed, 3 insertions(+), 5 deletions(-) diff --git a/.clang-format b/.clang-format index d617cd54e8..76c6a0e401 100644 --- a/.clang-format +++ b/.clang-format @@ -23,7 +23,6 @@ InsertNewlineAtEOF: true PackConstructorInitializers: NextLine PPIndentWidth: 1 PointerAlignment: Left -RemoveSemicolon: true SpaceAfterTemplateKeyword: false SpaceBeforeParens: ControlStatements SpaceBeforeCpp11BracedList: true diff --git a/mex/sources/ms-sbvar/modify_for_mex.h b/mex/sources/ms-sbvar/modify_for_mex.h index e5655fdf60..342a9571a2 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 ffd1d59ac0..2a5a0192ec 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++) { diff --git a/preprocessor b/preprocessor index 58707f5faf..a1bfb5483d 160000 --- a/preprocessor +++ b/preprocessor @@ -1 +1 @@ -Subproject commit 58707f5faf1d357ca61328f0efb63711d3e59a5e +Subproject commit a1bfb5483d76715873f0689d9389793a0838a485 -- GitLab