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 Dec 23, 2023
1 parent a2a6484 commit 3bfd904
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions source/to_cpp1.h
Original file line number Diff line number Diff line change
Expand Up @@ -1699,10 +1699,12 @@ class cppfront
bool in_synthesized_multi_return = false,
bool is_local_name = true,
bool is_qualified = false,
bool is_dependent = false,
bool emit_identifier = true
)
-> void
{ STACKINSTR
(void)is_dependent; // Avoid conflict with #533.
auto last_use = is_definite_last_use(n.identifier);

bool add_forward =
Expand Down Expand Up @@ -4887,7 +4889,7 @@ class cppfront
{
auto list = std::string{""};
if (parent->specialization_template_arguments) {
list = print_to_string(*parent->specialization_template_arguments, false, false, false, false);
list = print_to_string(*parent->specialization_template_arguments, false, false, false, false, false);
}
else if (parent->template_parameters) {
auto separator = std::string{"<"};
Expand Down Expand Up @@ -5551,7 +5553,7 @@ class cppfront

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

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

// Type declaration
Expand Down Expand Up @@ -6633,7 +6635,7 @@ class cppfront
else {
emit(*n.identifier);
if (n.specialization_template_arguments) {
emit(*n.specialization_template_arguments, false, false, false, false);
emit(*n.specialization_template_arguments, false, false, false, false, false);
}
}

Expand Down

0 comments on commit 3bfd904

Please sign in to comment.