Skip to content

Commit

Permalink
Rework code to call one function when add comment
Browse files Browse the repository at this point in the history
When we want to add an internal comment we know call one function that
wrap the code instead of calling two function, one at the beginning one
at the end.

gcc/rust/ChangeLog:

	* ast/rust-ast-collector.cc (TokenCollector::internal_comment):
		Wrapper function to add both  comment.
	(TokenCollector::visit): call of the wrapper function.
	(TokenCollector::visit_closure_common): Same.
	(TokenCollector::visit_loop_common): Same.
	* ast/rust-ast-collector.h: Prototype of the wrapper function

Signed-off-by: Benjamin Thos <[email protected]>
  • Loading branch information
Kamiinarii committed Dec 16, 2024
1 parent 7d9b3fd commit 01ae1b5
Show file tree
Hide file tree
Showing 2 changed files with 1,785 additions and 2,092 deletions.
Loading

0 comments on commit 01ae1b5

Please sign in to comment.