aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/variable.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2020-03-16 08:57:29 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2020-03-17 07:47:17 +0200
commit962f83b1e551cc683f1052d32cb79b969e65af5f (patch)
tree8e3d1936db8be9b07baffac289bb3b4e06010cf8 /libbuild2/variable.cxx
parent9f71deeeb0f8e6fe2c29f209fc96f466fc2831b6 (diff)
Rename all find*(variable) to lookup*(variable)
Now we consistently use term "lookup" for variable value lookup. At some point we should also rename type lookup to binding and get rid of all the lookup_type aliases.
Diffstat (limited to 'libbuild2/variable.cxx')
-rw-r--r--libbuild2/variable.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/libbuild2/variable.cxx b/libbuild2/variable.cxx
index 90d5120..0460344 100644
--- a/libbuild2/variable.cxx
+++ b/libbuild2/variable.cxx
@@ -1387,7 +1387,7 @@ namespace build2
const variable_map empty_variable_map (nullptr /* context */);
auto variable_map::
- find (const variable& var, bool typed) const ->
+ lookup (const variable& var, bool typed) const ->
pair<const value_data*, const variable&>
{
const variable* v (&var);
@@ -1419,10 +1419,10 @@ namespace build2
}
auto variable_map::
- find_to_modify (const variable& var, bool typed) ->
+ lookup_to_modify (const variable& var, bool typed) ->
pair<value_data*, const variable&>
{
- auto p (find (var, typed));
+ auto p (lookup (var, typed));
auto* r (const_cast<value_data*> (p.first));
if (r != nullptr)
@@ -1499,7 +1499,7 @@ namespace build2
//
const variable_map& vm (j->second);
{
- auto p (vm.find (var, false));
+ auto p (vm.lookup (var, false));
if (const variable_map::value_data* v = p.first)
{
// Check if this is the first access after being assigned a type.