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/expand/rust-derive.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/expand/rust-derive.h')
-rw-r--r-- | gcc/rust/expand/rust-derive.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/rust/expand/rust-derive.h b/gcc/rust/expand/rust-derive.h index 8fe29c0..f953c3d 100644 --- a/gcc/rust/expand/rust-derive.h +++ b/gcc/rust/expand/rust-derive.h @@ -221,6 +221,7 @@ private: virtual void visit (SelfParam ¶m) override final{}; virtual void visit (FunctionParam ¶m) override final{}; virtual void visit (VariadicParam ¶m) override final{}; + virtual void visit (FormatArgs ¶m) override final{}; }; } // namespace AST |