From 97e00dccb4a9d3abc3c896b33560ed6aed0a1763 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 26 Aug 2019 10:01:32 +0200 Subject: Factor target name processing code from parser to scope --- libbuild2/scope.ixx | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'libbuild2/scope.ixx') 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) { -- cgit v1.1