Skip to content

Commit 73d4b62

Browse files
committed
refactor(to_cpp1): apply review comment and rename name lookup
1 parent 7f49d99 commit 73d4b62

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

source/to_cpp1.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1053,15 +1053,15 @@ class cppfront
10531053
}
10541054
};
10551055

1056-
using unqualified_name_lookup_res =
1056+
using source_order_name_lookup_res =
10571057
std::optional<std::variant<declaration_node const*, active_using_declaration>>;
10581058

10591059
// Stack of the currently active nested declarations we're inside
10601060
std::vector<declaration_node const*> current_declarations = { {} };
10611061

1062-
// Stack of the currently active nested names we're inside:
1062+
// Stack of the currently active names for source order name lookup:
10631063
// Like 'current_declarations' + also parameters and using declarations
1064-
std::vector<unqualified_name_lookup_res::value_type> current_names = { {} };
1064+
std::vector<source_order_name_lookup_res::value_type> current_names = { {} };
10651065

10661066
// Maintain a stack of the functions we're currently processing, which can
10671067
// be up to MaxNestedFunctions in progress (if we run out, bump the Max).
@@ -2798,8 +2798,8 @@ class cppfront
27982798
}
27992799

28002800

2801-
auto unqualified_name_lookup(unqualified_id_node const& id)
2802-
-> unqualified_name_lookup_res
2801+
auto source_order_name_lookup(unqualified_id_node const& id)
2802+
-> source_order_name_lookup_res
28032803
{
28042804
for (
28052805
auto first = current_names.rbegin(), last = current_names.rend() - 1;
@@ -2840,7 +2840,7 @@ class cppfront
28402840
}
28412841

28422842
auto const& id = *get<id_expression_node::unqualified>(n.id);
2843-
auto lookup = unqualified_name_lookup(id);
2843+
auto lookup = source_order_name_lookup(id);
28442844

28452845
if (
28462846
!lookup

0 commit comments

Comments
 (0)