From 1cccd7acfa672397b7d5d1a759f803bb0f748224 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 8 Feb 2022 13:56:59 +0200 Subject: Add perform_clean_group_extra() --- libbuild2/algorithm.hxx | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'libbuild2/algorithm.hxx') diff --git a/libbuild2/algorithm.hxx b/libbuild2/algorithm.hxx index c767f5a..8a6eb65 100644 --- a/libbuild2/algorithm.hxx +++ b/libbuild2/algorithm.hxx @@ -840,6 +840,20 @@ namespace build2 return perform_clean_extra (a, f, clean_extras (e)); } + // Similar to perform_clean_group() but with extras similar to + // perform_clean_extra(). Note that the extras are derived from the group + // "path" (g.dir / g.name). + // + LIBBUILD2_SYMEXPORT target_state + perform_clean_group_extra (action, const mtime_target&, const clean_extras&); + + inline target_state + perform_clean_group_extra (action a, const mtime_target& g, + initializer_list e) + { + return perform_clean_group_extra (a, g, clean_extras (e)); + } + // Update/clean a backlink issuing appropriate diagnostics at appropriate // levels depending on the overload and the changed argument. // -- cgit v1.1