From 580539ab08a098e7f348fee3c46fbf5d44cd4d54 Mon Sep 17 00:00:00 2001 From: Paul Cristian Sarbu Date: Thu, 16 May 2024 11:24:14 +0200 Subject: RepositoryConfig: Instance should not be changed once populated Once a RepositoryConfig instance gets populated, it must never be changed again. Therefore, all functions accepting these instances should only take them as pointers to const. --- src/buildtool/build_engine/base_maps/expression_map.hpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/buildtool/build_engine/base_maps/expression_map.hpp') diff --git a/src/buildtool/build_engine/base_maps/expression_map.hpp b/src/buildtool/build_engine/base_maps/expression_map.hpp index c7259bfd..ceb2cf2f 100644 --- a/src/buildtool/build_engine/base_maps/expression_map.hpp +++ b/src/buildtool/build_engine/base_maps/expression_map.hpp @@ -41,9 +41,10 @@ constexpr auto CreateExpressionFileMap = using ExpressionFunctionMap = AsyncMapConsumer; -auto CreateExpressionMap(gsl::not_null const& expr_file_map, - gsl::not_null const& repo_config, - std::size_t jobs = 0) -> ExpressionFunctionMap; +auto CreateExpressionMap( + gsl::not_null const& expr_file_map, + gsl::not_null const& repo_config, + std::size_t jobs = 0) -> ExpressionFunctionMap; // use explicit cast to std::function to allow template deduction when used static const std::function kEntityNamePrinter = -- cgit v1.2.3