aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/target.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2021-09-15 10:25:15 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2021-09-15 10:25:15 +0200
commitb8d4cb75ca4f6214a0cac22c96691e770d5940d9 (patch)
tree88823f4c2aa070849fc8a089fc6d40af58bc0523 /libbuild2/target.hxx
parentef2fdd0e104494c1a5beee51521563d013a3b3cc (diff)
Do variable lookup in ad hoc target groups
Diffstat (limited to 'libbuild2/target.hxx')
-rw-r--r--libbuild2/target.hxx9
1 files changed, 6 insertions, 3 deletions
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<target> 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
{