Skip to content

Commit

Permalink
refactor(to_cpp1): avoid conflict with branch optional_typename
Browse files Browse the repository at this point in the history
  • Loading branch information
JohelEGP committed Oct 2, 2024
1 parent 259764d commit b8dc740
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions source/to_cpp1.h
Original file line number Diff line number Diff line change
Expand Up @@ -1722,10 +1722,12 @@ class cppfront
bool is_local_name = true,
bool is_qualified = false,
bool is_class_member_access = false,
bool emit_identifier = true
bool is_dependent = false,
bool emit_identifier = true
)
-> void
{ STACKINSTR
(void)is_dependent; // Avoid conflict with #533.
assert( n.identifier );
auto last_use = is_definite_last_use(n.identifier);

Expand Down Expand Up @@ -5220,7 +5222,7 @@ class cppfront
{
auto list = std::string{""};
if (parent->specialization_template_arguments) {
list = print_to_string(*parent->specialization_template_arguments, 0, false, false, false, false);
list = print_to_string(*parent->specialization_template_arguments, 0, false, false, false, false, false);
}
else if (parent->template_parameters) {
auto separator = std::string{"<"};
Expand Down Expand Up @@ -5907,7 +5909,7 @@ class cppfront

auto specialization_template_arguments = std::string{};
if (n.specialization_template_arguments) {
specialization_template_arguments = print_to_string(*n.specialization_template_arguments, 0, false, false, false, false);
specialization_template_arguments = print_to_string(*n.specialization_template_arguments, 0, false, false, false, false, false);
}

printer.print_cpp2(
Expand Down Expand Up @@ -6139,7 +6141,7 @@ class cppfront
printer.print_cpp2("class ", n.position());
emit(*n.identifier);
if (n.specialization_template_arguments) {
emit(*n.specialization_template_arguments, 0, false, false, false, false);
emit(*n.specialization_template_arguments, 0, false, false, false, false, false);
}

// Type declaration
Expand Down Expand Up @@ -7030,7 +7032,7 @@ class cppfront
else if (!n.is_object_with_function_typeid()) {
emit(*n.identifier);
if (n.specialization_template_arguments) {
emit(*n.specialization_template_arguments, 0, false, false, false, false);
emit(*n.specialization_template_arguments, 0, false, false, false, false, false);
}
}

Expand Down

0 comments on commit b8dc740

Please sign in to comment.