From bc39ecc0385dd7e0cb9e1df84628e4c6dde34ab5 Mon Sep 17 00:00:00 2001 From: Klaus Aehlig Date: Tue, 27 Aug 2024 11:14:38 +0200 Subject: Reformat code to comply with clang-format 18 ... while keeping our .clang-format file. --- test/buildtool/build_engine/expression/expression.test.cpp | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'test/buildtool/build_engine/expression/expression.test.cpp') diff --git a/test/buildtool/build_engine/expression/expression.test.cpp b/test/buildtool/build_engine/expression/expression.test.cpp index 83d6a2fe..aaca1c71 100644 --- a/test/buildtool/build_engine/expression/expression.test.cpp +++ b/test/buildtool/build_engine/expression/expression.test.cpp @@ -12,6 +12,8 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "src/buildtool/build_engine/expression/expression.hpp" + #include #include #include @@ -20,7 +22,6 @@ #include "catch2/catch_test_macros.hpp" #include "catch2/matchers/catch_matchers_all.hpp" #include "src/buildtool/build_engine/expression/configuration.hpp" -#include "src/buildtool/build_engine/expression/expression.hpp" #include "src/buildtool/build_engine/expression/function_map.hpp" #include "src/buildtool/common/artifact_description.hpp" #include "test/utils/container_matchers.hpp" @@ -291,8 +292,9 @@ concept ValidExpressionTypeOrPtr = Expression::IsValidType() or std::is_same_v; template -auto Add(ExpressionPtr const& expr, std::string const& key, T const& by) - -> ExpressionPtr { +auto Add(ExpressionPtr const& expr, + std::string const& key, + T const& by) -> ExpressionPtr { try { auto new_map = Expression::map_t::underlying_map_t{}; new_map.emplace(key, by); @@ -303,8 +305,9 @@ auto Add(ExpressionPtr const& expr, std::string const& key, T const& by) } template -auto Replace(ExpressionPtr const& expr, std::string const& key, T const& by) - -> ExpressionPtr { +auto Replace(ExpressionPtr const& expr, + std::string const& key, + T const& by) -> ExpressionPtr { auto const& map = expr->Map(); if (not map.contains(key)) { return ExpressionPtr{nullptr}; -- cgit v1.2.3