]> git.ipfire.org Git - thirdparty/gcc.git/commit
gccrs: Move templated functions to header file
authorPierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Tue, 7 Nov 2023 10:37:39 +0000 (11:37 +0100)
committerArthur Cohen <arthur.cohen@embecosm.com>
Tue, 16 Jan 2024 18:13:14 +0000 (19:13 +0100)
commit32f16cac2d373892129585e048fdc861d0dface9
tree5d8760266d73e25d2e848c08b013ae2e11cc692e
parent513b0154ab1f00e92d2072a5858f585510599b9b
gccrs: Move templated functions to header file

Templated functions shall remain in header files to stay in line with the
rest of the codebase.

gcc/rust/ChangeLog:

* ast/rust-ast-collector.cc (TokenCollector::visit): Move to header
file.
(TokenCollector::visit_items_joined_by_separator): Likewise.
(TokenCollector::visit_as_line): Likewise.
(TokenCollector::visit_items_as_lines): Likewise.
(TokenCollector::visit_items_as_block): Likewise.
* ast/rust-ast-collector.h: Add implementation.

Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
gcc/rust/ast/rust-ast-collector.cc
gcc/rust/ast/rust-ast-collector.h