aboutsummaryrefslogtreecommitdiff
path: root/build/scope
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-12-03 19:15:58 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-12-03 19:15:58 +0200
commit41d3540e97b87fabc58af6226e6b7784767bc047 (patch)
tree9352aa6c90d37b4eb286d16287f934c4fecf0e27 /build/scope
parent0dfd165b5381286dc76f96637b9eb24b26a0b4b9 (diff)
Fix reverse lookup of extension to target type in C++ dep extraction
Diffstat (limited to 'build/scope')
-rw-r--r--build/scope14
1 files changed, 14 insertions, 0 deletions
diff --git a/build/scope b/build/scope
index e52f615..551ce9d 100644
--- a/build/scope
+++ b/build/scope
@@ -102,6 +102,20 @@ namespace build
}
build::lookup<const value>
+ lookup (const target_type& tt,
+ const string& name,
+ const variable& var) const
+ {
+ return lookup (&tt, &name, var);
+ }
+
+ build::lookup<const value>
+ lookup (const target_type& tt, const string& name, const string& var) const
+ {
+ return lookup (tt, name, var_pool.find (var));
+ }
+
+ build::lookup<const value>
lookup (const target_type*, const string* name, const variable&) const;
// Return a value suitable for assignment (or append if you only