diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2016-01-21 17:54:40 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2016-01-21 17:54:40 +0200 |
commit | 8c5688d77555091615dccd90ea1cf28b89c08d13 (patch) | |
tree | f245bfa73cf0ad5b5cff33b6e97d7f8ff1e6f595 /build2/prerequisite | |
parent | 5b4206b8f38dbd680da02d1cdcd3f4912a27e627 (diff) |
Tighten/clarify interface
Diffstat (limited to 'build2/prerequisite')
-rw-r--r-- | build2/prerequisite | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/build2/prerequisite b/build2/prerequisite index 345c84f..6ea7fe0 100644 --- a/build2/prerequisite +++ b/build2/prerequisite @@ -70,7 +70,7 @@ namespace build2 target (nullptr) {} public: - const std::string* proj; // NULL if not project-qualified. + const std::string* const proj; // NULL if not project-qualified. const target_type_type& type; const dir_path dir; // Normalized absolute or relative (to scope). const std::string name; @@ -79,6 +79,10 @@ namespace build2 target_type* target; // NULL if not yet resolved. Note that this should // always be the "primary target", not a member of // a target group. + + // Note that the returned key "tracks" the prerequisite; that is, any + // updates to the prerequisite's members will be reflected in the key. + // prerequisite_key key () const { |