diff options
author | Arthur Cohen <arthur.cohen@embecosm.com> | 2024-02-15 20:58:48 +0100 |
---|---|---|
committer | CohenArthur <arthur.cohen@embecosm.com> | 2024-03-01 15:42:36 +0000 |
commit | 12ca8dbb4bc22da1b93630c884b75ce254605882 (patch) | |
tree | dabaaeac068924aa1d6520bbe3aad26ad196e905 /gcc/rust/parse/rust-parse.h | |
parent | 7064be37a38b4c3c8ad8193e13312e2c558303dc (diff) | |
download | gcc-12ca8dbb4bc22da1b93630c884b75ce254605882.zip gcc-12ca8dbb4bc22da1b93630c884b75ce254605882.tar.gz gcc-12ca8dbb4bc22da1b93630c884b75ce254605882.tar.bz2 |
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