aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/algorithm.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2023-10-22 11:48:22 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2023-10-26 13:29:24 +0200
commit668d521db19d35cfe8ea6ae0c0de3668bb216c76 (patch)
tree212956c3d5b6322a3acb710f99880cfeccb2e104 /libbuild2/algorithm.cxx
parent3cdc5d8ceafeddf04aa8dea2ac76c954d3de116e (diff)
WIP: rename match_rule() to match_rule_impl()
Diffstat (limited to 'libbuild2/algorithm.cxx')
-rw-r--r--libbuild2/algorithm.cxx22
1 files changed, 11 insertions, 11 deletions
diff --git a/libbuild2/algorithm.cxx b/libbuild2/algorithm.cxx
index 5b543cf..88aec85 100644
--- a/libbuild2/algorithm.cxx
+++ b/libbuild2/algorithm.cxx
@@ -553,11 +553,11 @@ namespace build2
// Return the matching rule or NULL if no match and try_match is true.
//
const rule_match*
- match_rule (action a, target& t,
- uint64_t options,
- const rule* skip,
- bool try_match,
- match_extra* pme)
+ match_rule_impl (action a, target& t,
+ uint64_t options,
+ const rule* skip,
+ bool try_match,
+ match_extra* pme)
{
using fallback_rule = adhoc_rule_pattern::fallback_rule;
@@ -616,11 +616,11 @@ namespace build2
// a temporary (it shouldn't be modified if unlocked).
//
match_extra gme (false /* locked */);
- if (const rule_match* r = match_rule (a, const_cast<target&> (*g),
- 0 /* options */,
- skip,
- true /* try_match */,
- &gme))
+ if (const rule_match* r = match_rule_impl (a, const_cast<target&> (*g),
+ 0 /* options */,
+ skip,
+ true /* try_match */,
+ &gme))
{
me.new_options = options; // Currently unused but maybe in future.
return r;
@@ -1195,7 +1195,7 @@ namespace build2
clear_target (a, t);
const rule_match* r (
- match_rule (a, t, options, nullptr, try_match));
+ match_rule_impl (a, t, options, nullptr, try_match));
assert (l.offset != target::offset_tried); // Should have failed.