diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2024-07-29 10:44:18 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2024-07-29 10:44:18 +0200 |
commit | c3212dbda325bdf6eaff6a7652c996a28e8ba688 (patch) | |
tree | efec5919720793ed9cbc759f7168581a31d3bd29 /libbuild2/target.hxx | |
parent | ab4c1b8a8b67fd9ffc89c804efa260584530897d (diff) |
Add scope::lookup_original_info() that provides additional info about lookup
Diffstat (limited to 'libbuild2/target.hxx')
-rw-r--r-- | libbuild2/target.hxx | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/libbuild2/target.hxx b/libbuild2/target.hxx index 20cd32d..da2ab73 100644 --- a/libbuild2/target.hxx +++ b/libbuild2/target.hxx @@ -770,10 +770,12 @@ namespace build2 // As above but also return the depth at which the value is found. The // depth is calculated by adding 1 for each test performed. So a value // that is from the target will have depth 1. That from the group -- 2. - // From the innermost scope's target type/patter-specific variables -- - // 3. From the innermost scope's variables -- 4. And so on. The idea is - // that given two lookups from the same target, we can say which one came - // earlier. If no value is found, then the depth is set to ~0. + // From the innermost scope's target type/patter-specific variables for + // the target -- 3. From the innermost scope's target type/patter-specific + // variables for the group -- 4. From the innermost scope's variables -- + // 5. And so on. The idea is that given two lookups from the same target, + // we can say which one came earlier. If no value is found, then the depth + // is set to ~0. // pair<lookup_type, size_t> lookup (const variable& var, const scope* bs = nullptr) const |