aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/hir
diff options
context:
space:
mode:
authorPierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>2023-06-23 13:59:51 +0200
committerCohenArthur <arthur.cohen@embecosm.com>2023-06-29 12:30:17 +0000
commit18a67ff6bfd0d4e8219e2f5449831ab19b8a8ea7 (patch)
tree9c4a02dff79346c59de85c4ba62da7e62cbc6861 /gcc/rust/hir
parent299edc484ba55772f1d25a8071c79929366665df (diff)
downloadgcc-18a67ff6bfd0d4e8219e2f5449831ab19b8a8ea7.zip
gcc-18a67ff6bfd0d4e8219e2f5449831ab19b8a8ea7.tar.gz
gcc-18a67ff6bfd0d4e8219e2f5449831ab19b8a8ea7.tar.bz2
collector: Implement formatting options
The collector did only output the tokens without any formatting. gcc/rust/ChangeLog: * ast/rust-ast-collector.cc (TokenCollector::collect): Collect CollectItems once done. (TokenCollector::newline): Add newline formatting implementation. (TokenCollector::indentation): Add indentation implementation. (TokenCollector::increment_indentation): Add indentation increment. (TokenCollector::comment): Add new comment formatting option. * ast/rust-ast-collector.h: Update prototypes. Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Diffstat (limited to 'gcc/rust/hir')
0 files changed, 0 insertions, 0 deletions