From bb4f9e6498ba715911f83e0dc221a5b1b86baf51 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 24 Jul 2015 10:32:50 +0200 Subject: Further test module development --- build/algorithm | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'build/algorithm') 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. // -- cgit v1.1