File tree Expand file tree Collapse file tree 2 files changed +0
-52
lines changed Expand file tree Collapse file tree 2 files changed +0
-52
lines changed Original file line number Diff line number Diff line change @@ -2717,9 +2717,6 @@ class cppfront
2717
2717
|| i->op ->type () == lexeme::Tilde
2718
2718
)
2719
2719
{
2720
- adjust_remaining_token_columns_on_this_line_visitor v (i->op ->position (), 0 - i->op ->length ());
2721
- n.visit (v, 0 );
2722
-
2723
2720
// omit some needless parens
2724
2721
if (
2725
2722
!last_was_prefixed
@@ -3300,9 +3297,7 @@ class cppfront
3300
3297
}
3301
3298
3302
3299
assert (x.expr );
3303
- adjust_remaining_token_columns_on_this_line_visitor v (x.expr ->position (), offset);
3304
3300
current_args.push_back ( {x.pass } );
3305
- x.expr ->visit (v, 0 );
3306
3301
emit (*x.expr );
3307
3302
current_args.pop_back ();
3308
3303
Original file line number Diff line number Diff line change @@ -5650,53 +5650,6 @@ auto parser::debug_print(std::ostream& o)
5650
5650
}
5651
5651
5652
5652
5653
- // -----------------------------------------------------------------------
5654
- //
5655
- // Visitor for moving tokens that are to the right on the same line
5656
- // and shifting their positions left 'n' spaces - used only at the
5657
- // end when lowering to Cpp1, as a convenient way to adjust for other
5658
- // positions shifts we create (e.g., moving some operators to prefix
5659
- // notation, or inserting "std::move" prefixes)
5660
- //
5661
- // -----------------------------------------------------------------------
5662
- //
5663
- class adjust_remaining_token_columns_on_this_line_visitor
5664
- {
5665
- source_position line_to_adjust_pos;
5666
- colno_t col_offset;
5667
-
5668
- public:
5669
- adjust_remaining_token_columns_on_this_line_visitor (
5670
- source_position start_pos,
5671
- colno_t offset
5672
- )
5673
- : line_to_adjust_pos{start_pos}
5674
- , col_offset{offset}
5675
- { }
5676
-
5677
- auto start (token& n, int ) -> void
5678
- {
5679
- if (
5680
- n.position ().lineno == line_to_adjust_pos.lineno
5681
- && n.position ().colno >= line_to_adjust_pos.colno
5682
- )
5683
- {
5684
- n.position_col_shift (col_offset);
5685
- }
5686
- }
5687
-
5688
- auto start (auto const &, int ) -> void
5689
- {
5690
- // Ignore other node types
5691
- }
5692
-
5693
- auto end (auto const &, int ) -> void
5694
- {
5695
- // Ignore other node types
5696
- }
5697
- };
5698
-
5699
-
5700
5653
}
5701
5654
5702
5655
#endif
You can’t perform that action at this time.
0 commit comments