aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/scope.ixx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2019-08-26 10:01:32 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2019-08-26 10:01:32 +0200
commit97e00dccb4a9d3abc3c896b33560ed6aed0a1763 (patch)
treebd17e1fc480ea56232a0b4c6f22bb691bc61ee1d /libbuild2/scope.ixx
parent8e0e8edb727a5367d991880b033eb13060f4c8eb (diff)
Factor target name processing code from parser to scope
Diffstat (limited to 'libbuild2/scope.ixx')
-rw-r--r--libbuild2/scope.ixx7
1 files changed, 7 insertions, 0 deletions
diff --git a/libbuild2/scope.ixx b/libbuild2/scope.ixx
index 14907d3..5ce0a73 100644
--- a/libbuild2/scope.ixx
+++ b/libbuild2/scope.ixx
@@ -52,6 +52,13 @@ namespace build2
return false;
}
+ inline target_key scope::
+ find_target_key (name& n, name& o, const location& loc) const
+ {
+ auto p (find_target_type (n, o, loc));
+ return target_key {&p.first, &n.dir, &o.dir, &n.value, move (p.second)};
+ }
+
inline dir_path
src_out (const dir_path& out, const scope& r)
{