aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2020-05-11 10:20:02 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2020-05-27 08:26:20 +0200
commitba1fb800d20e7757cd8523a0793f63cff137c7cf (patch)
tree62ec255b343869bbee904679ac1359ede309bdda
parent9cb494bcc3d6b9baab57158d833f59dccab693b8 (diff)
Use location_value in module_state
-rw-r--r--libbuild2/module.hxx2
-rw-r--r--libbuild2/types.hxx6
2 files changed, 4 insertions, 4 deletions
diff --git a/libbuild2/module.hxx b/libbuild2/module.hxx
index b2b42e4..f97bc60 100644
--- a/libbuild2/module.hxx
+++ b/libbuild2/module.hxx
@@ -127,7 +127,7 @@ namespace build2
bool first; // True if the boot'ed module must be init'ed first.
module_init_function* init;
shared_ptr<build2::module> module;
- const location loc; // Boot location.
+ location_value loc; // Boot location.
};
struct module_map: std::map<string, module_state>
diff --git a/libbuild2/types.hxx b/libbuild2/types.hxx
index 022a6a4..d20fa22 100644
--- a/libbuild2/types.hxx
+++ b/libbuild2/types.hxx
@@ -313,8 +313,9 @@ namespace build2
// Diagnostics location.
//
- // Note that location maintains a shallow reference to path/path_name. Zero
- // lines or columns are not printed.
+ // Note that location maintains a shallow reference to path/path_name (use
+ // location_value if you need the deep copy semantics). Zero lines or
+ // columns are not printed.
//
class location
{
@@ -356,7 +357,6 @@ namespace build2
location_value ();
- explicit
location_value (const location&);
location_value (location_value&&);