aboutsummaryrefslogtreecommitdiff
path: root/build/algorithm
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-07-24 10:32:50 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-07-24 10:32:50 +0200
commitbb4f9e6498ba715911f83e0dc221a5b1b86baf51 (patch)
tree021007995d476770b6dced459a770712baa8ea72 /build/algorithm
parent3c57a25a4d6a80301ece82ab33f1394e34f8b873 (diff)
Further test module development
Diffstat (limited to 'build/algorithm')
-rw-r--r--build/algorithm12
1 files changed, 10 insertions, 2 deletions
diff --git a/build/algorithm b/build/algorithm
index f108a8a..d01614c 100644
--- a/build/algorithm
+++ b/build/algorithm
@@ -44,7 +44,7 @@ namespace build
const dir_path& dir,
const std::string& name,
const std::string* ext,
- scope* scope);
+ scope*);
// As above but specify the target type as template argument.
//
@@ -53,7 +53,15 @@ namespace build
search (const dir_path& dir,
const std::string& name,
const std::string* ext,
- scope* scope);
+ scope*);
+
+ // Search for a target identified by the name. The semantics
+ // is "as if" we first created a prerequisite based on this
+ // name in exactly the same way as the parser would and then
+ // searched based on this prerequisite.
+ //
+ target&
+ search (name, scope&);
// Match a rule to the action/target with ambiguity detection.
//