diff options
Diffstat (limited to 'libbuild2/rule.hxx')
-rw-r--r-- | libbuild2/rule.hxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libbuild2/rule.hxx b/libbuild2/rule.hxx index acd22fe..7e5ddb1 100644 --- a/libbuild2/rule.hxx +++ b/libbuild2/rule.hxx @@ -34,6 +34,9 @@ namespace build2 // implementations. It is also a way for us to later pass more information // without breaking source compatibility. // + // A rule may adjust post hoc prerequisites by overriding apply_posthoc(). + // See match_extra::posthoc_prerequisite_targets for background and details. + // // A rule may support match options and if such a rule is rematched with // different options, then reapply() is called. See // match_extra::{cur,new}_options for background and details. @@ -50,6 +53,9 @@ namespace build2 apply (action, target&, match_extra&) const = 0; virtual void + apply_posthoc (action, target&, match_extra&) const; + + virtual void reapply (action, target&, match_extra&) const; rule () = default; |