From b8d4cb75ca4f6214a0cac22c96691e770d5940d9 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 15 Sep 2021 10:25:15 +0200 Subject: Do variable lookup in ad hoc target groups --- libbuild2/target.hxx | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'libbuild2/target.hxx') diff --git a/libbuild2/target.hxx b/libbuild2/target.hxx index 21b5dab..8193f35 100644 --- a/libbuild2/target.hxx +++ b/libbuild2/target.hxx @@ -266,9 +266,6 @@ namespace build2 // - Ad hoc group cannot have sub-groups (of any kind) though an ad hoc // group can be a sub-group of an explicit group. // - // - Member variable lookup skips the ad hoc group (since the group is the - // first member, this is normally what we want). - // // Note that ad hoc groups can be part of explicit groups. In a sense, we // have a two-level grouping: an explicit group with its members each of // which can be an ad hoc group. For example, lib{} contains libs{} which @@ -279,6 +276,9 @@ namespace build2 // const_ptr adhoc_member = nullptr; + // Return true if this target is an ad hoc group (that is, its primary + // member). + // bool adhoc_group () const { @@ -288,6 +288,9 @@ namespace build2 (group == nullptr || group->adhoc_member == nullptr); } + // Return true if this target is an ad hoc group member (that is, its + // secondary member). + // bool adhoc_group_member () const { -- cgit v1.1