aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/algorithm.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2022-02-08 13:56:59 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2022-02-09 10:19:46 +0200
commit1cccd7acfa672397b7d5d1a759f803bb0f748224 (patch)
tree724c6adb05b4304c487ed26cb09d4d203aa8fdd3 /libbuild2/algorithm.hxx
parent382c3d20ab779fe57719bf56cd88a64259c1a3ca (diff)
Add perform_clean_group_extra()
Diffstat (limited to 'libbuild2/algorithm.hxx')
-rw-r--r--libbuild2/algorithm.hxx14
1 files changed, 14 insertions, 0 deletions
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<const char*> 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.
//