diff options
author | Arthur Cohen <arthur.cohen@embecosm.com> | 2024-02-15 20:58:48 +0100 |
---|---|---|
committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2024-08-01 13:11:30 +0200 |
commit | 194883fba01c8866403556dc134b75202c0d76ce (patch) | |
tree | 260d3e1ece30d25c343a2d33556c6e5061c36649 /gcc/rust/parse/rust-parse.h | |
parent | 2509160eb12d950be2be260bd208cd354fe71def (diff) | |
download | gcc-194883fba01c8866403556dc134b75202c0d76ce.zip gcc-194883fba01c8866403556dc134b75202c0d76ce.tar.gz gcc-194883fba01c8866403556dc134b75202c0d76ce.tar.bz2 |
gccrs: ast: Add base nodes for FormatArgs
This commit adds a base for creating AST FormatArgs nodes after expanding
invocations of `format_args!()`. These nodes will then be expanded to
the proper runtime function calls (to core::fmt::rt) during the AST
lowering.
gcc/rust/ChangeLog:
* ast/rust-builtin-ast-nodes.h: New file.
* ast/rust-ast-full-decls.h (class FormatArgs): Declare new class.
* ast/rust-ast-collector.cc: Handle FormatArgs nodes properly.
* ast/rust-ast-collector.h: Likewise.
* ast/rust-ast-full.h: Likewise.
* ast/rust-ast-visitor.cc: Likewise.
* ast/rust-ast-visitor.h: Likewise.
* ast/rust-ast.cc: Likewise.
* ast/rust-ast.h: Likewise.
* expand/rust-derive.h: Likewise.
* hir/rust-ast-lower-base.cc: Likewise.
* hir/rust-ast-lower-base.h: Likewise.
* hir/rust-ast-lower-expr.cc: Likewise.
* hir/rust-ast-lower-expr.h: Likewise.
* resolve/rust-ast-resolve-base.cc: Likewise.
* resolve/rust-ast-resolve-base.h: Likewise.
Diffstat (limited to 'gcc/rust/parse/rust-parse.h')
0 files changed, 0 insertions, 0 deletions