From e3d98f0e0d4e87f532a5cbecba25e2e16ac980e5 Mon Sep 17 00:00:00 2001 From: Luc Grosheintz Date: Wed, 13 Nov 2024 14:12:37 +0100 Subject: [PATCH 1/2] Update `clang-format == 19.1.3`. Fixes a bug in clang-format that would reorder multi-line string literals according to the rules for `#include` directives. --- .bbp-project.yaml | 2 +- src/lexer/modtoken.hpp | 2 +- src/visitors/sympy_solver_visitor.hpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.bbp-project.yaml b/.bbp-project.yaml index d233e4e166..807a0a763a 100644 --- a/.bbp-project.yaml +++ b/.bbp-project.yaml @@ -1,7 +1,7 @@ tools: ClangFormat: enable: True - version: ~=13.0 + version: == 19.1.3 exclude: match: - ext/.* diff --git a/src/lexer/modtoken.hpp b/src/lexer/modtoken.hpp index 4bb60d2295..d65673436b 100644 --- a/src/lexer/modtoken.hpp +++ b/src/lexer/modtoken.hpp @@ -68,7 +68,7 @@ class ModToken { /// \{ ModToken() - : pos(nullptr, 0){}; + : pos(nullptr, 0) {}; explicit ModToken(bool ext) : pos(nullptr, 0) diff --git a/src/visitors/sympy_solver_visitor.hpp b/src/visitors/sympy_solver_visitor.hpp index a77373e2d4..5408f137ec 100644 --- a/src/visitors/sympy_solver_visitor.hpp +++ b/src/visitors/sympy_solver_visitor.hpp @@ -170,7 +170,7 @@ class SympySolverVisitor: public AstVisitor { int SMALL_LINEAR_SYSTEM_MAX_STATES = 3) : use_pade_approx(use_pade_approx) , elimination(elimination) - , SMALL_LINEAR_SYSTEM_MAX_STATES(SMALL_LINEAR_SYSTEM_MAX_STATES){}; + , SMALL_LINEAR_SYSTEM_MAX_STATES(SMALL_LINEAR_SYSTEM_MAX_STATES) {}; void visit_var_name(ast::VarName& node) override; void visit_diff_eq_expression(ast::DiffEqExpression& node) override; From 977ab5fa1e82e3299010315316166a8cc0c2e59c Mon Sep 17 00:00:00 2001 From: Luc Grosheintz Date: Wed, 13 Nov 2024 14:12:37 +0100 Subject: [PATCH 2/2] Update `clang-format == 19.1.3`. Fixes a bug in clang-format that would reorder multi-line string literals according to the rules for `#include` directives. --- .bbp-project.yaml | 2 +- src/lexer/modtoken.hpp | 2 +- src/visitors/sympy_solver_visitor.hpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.bbp-project.yaml b/.bbp-project.yaml index d233e4e166..807a0a763a 100644 --- a/.bbp-project.yaml +++ b/.bbp-project.yaml @@ -1,7 +1,7 @@ tools: ClangFormat: enable: True - version: ~=13.0 + version: == 19.1.3 exclude: match: - ext/.* diff --git a/src/lexer/modtoken.hpp b/src/lexer/modtoken.hpp index 4bb60d2295..d65673436b 100644 --- a/src/lexer/modtoken.hpp +++ b/src/lexer/modtoken.hpp @@ -68,7 +68,7 @@ class ModToken { /// \{ ModToken() - : pos(nullptr, 0){}; + : pos(nullptr, 0) {}; explicit ModToken(bool ext) : pos(nullptr, 0) diff --git a/src/visitors/sympy_solver_visitor.hpp b/src/visitors/sympy_solver_visitor.hpp index a77373e2d4..5408f137ec 100644 --- a/src/visitors/sympy_solver_visitor.hpp +++ b/src/visitors/sympy_solver_visitor.hpp @@ -170,7 +170,7 @@ class SympySolverVisitor: public AstVisitor { int SMALL_LINEAR_SYSTEM_MAX_STATES = 3) : use_pade_approx(use_pade_approx) , elimination(elimination) - , SMALL_LINEAR_SYSTEM_MAX_STATES(SMALL_LINEAR_SYSTEM_MAX_STATES){}; + , SMALL_LINEAR_SYSTEM_MAX_STATES(SMALL_LINEAR_SYSTEM_MAX_STATES) {}; void visit_var_name(ast::VarName& node) override; void visit_diff_eq_expression(ast::DiffEqExpression& node) override;