From c2ecef0c40f4891c95e9fedc4a49531f0c4c970d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?S=C3=A9bastien=20Villemot?= <sebastien@dynare.org>
Date: Fri, 27 Dec 2024 15:23:15 +0100
Subject: [PATCH] Bump to clang-format 19

---
 src/ModelTree.cc |  3 +--
 src/ModelTree.hh | 11 +++++------
 src/Shocks.hh    |  6 +++---
 3 files changed, 9 insertions(+), 11 deletions(-)

diff --git a/src/ModelTree.cc b/src/ModelTree.cc
index 1f823ec1..70a4cd03 100644
--- a/src/ModelTree.cc
+++ b/src/ModelTree.cc
@@ -1398,8 +1398,7 @@ ModelTree::writeLatexModelFile(const string& mod_basename, const string& latex_b
       content_output << endl << R"(\end{dmath})" << endl;
     }
 
-  output << R"(\include{)" << latex_basename + "_content"
-         << "}" << endl
+  output << R"(\include{)" << latex_basename + "_content" << "}" << endl
          << R"(\end{document})" << endl;
 
   output.close();
diff --git a/src/ModelTree.hh b/src/ModelTree.hh
index 97363ff9..ee494eb1 100644
--- a/src/ModelTree.hh
+++ b/src/ModelTree.hh
@@ -1004,9 +1004,8 @@ ModelTree::writeModelCFile(const string& basename, const string& mexext,
 
   const filesystem::path model_src_dir {filesystem::path {basename} / "model" / "src"};
 
-  auto [d_output, tt_output] = writeModelFileHelper < dynamic
-                                   ? ExprNodeOutputType::CDynamicModel
-                                   : ExprNodeOutputType::CStaticModel > ();
+  auto [d_output, tt_output] = writeModelFileHelper<dynamic ? ExprNodeOutputType::CDynamicModel
+                                                            : ExprNodeOutputType::CStaticModel>();
   vector<filesystem::path> header_files, object_files;
 
   // TODO: when C++20 support is complete, mark the following strings constexpr
@@ -2376,9 +2375,9 @@ ModelTree::writeSparseModelJuliaFiles(const string& basename) const
 {
   assert(heterogeneity_table.empty());
 
-  auto [d_sparse_output, tt_sparse_output] = writeModelFileHelper < dynamic
-                                                 ? ExprNodeOutputType::juliaSparseDynamicModel
-                                                 : ExprNodeOutputType::juliaSparseStaticModel > ();
+  auto [d_sparse_output, tt_sparse_output]
+      = writeModelFileHelper<dynamic ? ExprNodeOutputType::juliaSparseDynamicModel
+                                     : ExprNodeOutputType::juliaSparseStaticModel>();
 
   filesystem::path julia_dir {filesystem::path {basename} / "model" / "julia"};
   // TODO: when C++20 support is complete, mark the following strings constexpr
diff --git a/src/Shocks.hh b/src/Shocks.hh
index 96138111..dc021e4a 100644
--- a/src/Shocks.hh
+++ b/src/Shocks.hh
@@ -41,7 +41,7 @@ public:
   using det_shocks_t = map<int, vector<pair<period_range_t, expr_t>>>;
   enum class ShockType
   {
-    level, // The value is the level of the exogenous (“values” statement in “shocks”)
+    level,               // The value is the level of the exogenous (“values” statement in “shocks”)
     multiplySteadyState, // The value is the ratio of the exogenous over its (terminal) steady state
                          // (“values” statement in “mshocks”)
     multiplyInitialSteadyState // The value is the ratio of the exogenous over its initial steady
@@ -132,8 +132,8 @@ public:
   enum class LearntShockType
   {
     level, // The value is the level of the exogenous (“values” statement in “shocks(learnt_in=…)”)
-    add,      // The value is the additive change of the exogenous compared to previous information
-              // period (“add” statement in “shocks(learnt_in=…)”)
+    add,   // The value is the additive change of the exogenous compared to previous information
+           // period (“add” statement in “shocks(learnt_in=…)”)
     multiply, // The value is the multiplicative change of the exogenous compared to previous
               // information period (“multiply” statement in “shocks(learnt_in=…)”)
     multiplySteadyState, // The value is the ratio of the exogenous over its (terminal) steady state
-- 
GitLab