aboutsummaryrefslogtreecommitdiff
path: root/build2/target
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2016-01-21 17:54:40 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2016-01-21 17:54:40 +0200
commit8c5688d77555091615dccd90ea1cf28b89c08d13 (patch)
treef245bfa73cf0ad5b5cff33b6e97d7f8ff1e6f595 /build2/target
parent5b4206b8f38dbd680da02d1cdcd3f4912a27e627 (diff)
Tighten/clarify interface
Diffstat (limited to 'build2/target')
-rw-r--r--build2/target3
1 files changed, 3 insertions, 0 deletions
diff --git a/build2/target b/build2/target
index 2f4479b..429df71 100644
--- a/build2/target
+++ b/build2/target
@@ -204,6 +204,9 @@ namespace build2
virtual group_view
group_members (action_type) const;
+ // Note that the returned key "tracks" the target; that is, any updates
+ // to the targets's members will be reflected in the key.
+ //
target_key
key () const {return target_key {&type (), &dir, &name, &ext};}