diff options
Diffstat (limited to 'build2/algorithm')
-rw-r--r-- | build2/algorithm | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/build2/algorithm b/build2/algorithm index 19b3971..d7dddba 100644 --- a/build2/algorithm +++ b/build2/algorithm @@ -220,6 +220,18 @@ namespace build2 // target_state perform_clean_depdb (action, target&); + + // Helper for custom perform(clean) implementations that cleans extra files + // specified as a list of extensions. The extension string can be NULL, in + // which case it is ignored. Otherwise, the first character can be '+', in + // which case the extension is added (without the plus) to the existing + // extension (if any). In all other cases, the old extension is replaced + // with the new one. For example: + // + // clean_extra (a, t, {"+.d", ".lib"}); + // + target_state + clean_extra (action, file&, initializer_list<const char*> extra_ext); } #include <build2/algorithm.ixx> |