diff options
author | Paul Cristian Sarbu <paul.cristian.sarbu@huawei.com> | 2024-01-30 17:50:03 +0100 |
---|---|---|
committer | Paul Cristian Sarbu <paul.cristian.sarbu@huawei.com> | 2024-02-16 17:22:22 +0100 |
commit | cfa8c2a41e8a585834e4d04d56ff7eec0d57f608 (patch) | |
tree | cb13964c7b39af02baedc1a52c4d1a21f56a63d9 /src/buildtool/build_engine/base_maps/expression_map.hpp | |
parent | aa16dd1b3a50aa402003bc80fa0145d1a845c2cb (diff) | |
download | justbuild-cfa8c2a41e8a585834e4d04d56ff7eec0d57f608.tar.gz |
async maps: Create utility library to handle cycle detection
Diffstat (limited to 'src/buildtool/build_engine/base_maps/expression_map.hpp')
-rw-r--r-- | src/buildtool/build_engine/base_maps/expression_map.hpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/buildtool/build_engine/base_maps/expression_map.hpp b/src/buildtool/build_engine/base_maps/expression_map.hpp index 5d08b78b..3a72c109 100644 --- a/src/buildtool/build_engine/base_maps/expression_map.hpp +++ b/src/buildtool/build_engine/base_maps/expression_map.hpp @@ -15,6 +15,7 @@ #ifndef INCLUDED_SRC_BUILDTOOL_BUILD_ENGINE_BASE_MAPS_EXPRESSION_MAP_HPP #define INCLUDED_SRC_BUILDTOOL_BUILD_ENGINE_BASE_MAPS_EXPRESSION_MAP_HPP +#include <functional> #include <memory> #include <string> @@ -43,6 +44,10 @@ auto CreateExpressionMap(gsl::not_null<ExpressionFileMap*> const& expr_file_map, gsl::not_null<RepositoryConfig*> 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<std::string(EntityName const&)> kEntityNamePrinter = + [](EntityName const& x) -> std::string { return x.ToString(); }; + } // namespace BuildMaps::Base #endif // INCLUDED_SRC_BUILDTOOL_BUILD_ENGINE_BASE_MAPS_EXPRESSION_MAP_HPP |