aboutsummaryrefslogtreecommitdiff
path: root/build2/algorithm
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2017-02-08 09:39:16 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2017-02-13 12:42:42 +0200
commit9aa99bc4e62909c119df72bda26b091245d48274 (patch)
tree45814aef0b6e22cf5edbd6c9c63d97e74c9ee399 /build2/algorithm
parent8aee78c8d0eb06334571e596f6fbdf7ed5756f0c (diff)
Do some naming cleanups
Diffstat (limited to 'build2/algorithm')
-rw-r--r--build2/algorithm9
1 files changed, 7 insertions, 2 deletions
diff --git a/build2/algorithm b/build2/algorithm
index 2243c47..e9098bd 100644
--- a/build2/algorithm
+++ b/build2/algorithm
@@ -190,13 +190,18 @@ namespace build2
// Note that this function can be used as a recipe.
//
target_state
- execute_prerequisites (action, const target&);
+ straight_execute_prerequisites (action, const target&);
// As above but iterates over the prerequisites in reverse.
//
target_state
reverse_execute_prerequisites (action, const target&);
+ // Call straight or reverse depending on the current mode.
+ //
+ target_state
+ execute_prerequisites (action, const target&);
+
// A version of the above that also determines whether the action needs to
// be executed on the target based on the passed timestamp and filter.
//
@@ -214,7 +219,7 @@ namespace build2
// recursively linking liba{} prerequisites).
//
// Note that because we use mtime, this function should normally only be
- // used in the perform_update action.
+ // used in the perform_update action (which is straight).
//
using prerequisite_filter = function<bool (const target&)>;