Skip to content

Commit

Permalink
refactor(to_cpp1): simplify expression
Browse files Browse the repository at this point in the history
  • Loading branch information
JohelEGP committed Oct 3, 2024
1 parent c539769 commit bd22b1e
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions source/to_cpp1.h
Original file line number Diff line number Diff line change
Expand Up @@ -4919,12 +4919,7 @@ class cppfront
// Else handle ordinary parameters

assert(n.declaration->identifier);
auto param_type = print_to_string(
type_id,
n.pass != passing_style::in,
source_position{},
print_to_string(*n.declaration->identifier)
);
auto param_type = print_to_string(type_id, false, source_position{}, print_to_string(*n.declaration->identifier));

auto is_deducible_parameter_type = is_deducible(type_id);

Expand Down

0 comments on commit bd22b1e

Please sign in to comment.