-
- Downloads
gccrs: format-args: Fix Rust interface and add input parsing.
gcc/rust/ChangeLog: * ast/rust-ast.cc: Make FormatArgs inherit from AST::Expr * ast/rust-builtin-ast-nodes.h: Improve FormatArg* nodes and helpers. * ast/rust-fmt.cc (Pieces::collect): Fix interface to match FFI function. * ast/rust-fmt.h (collect_pieces): Likewise. (struct Pieces): Add append_newline parameter. * expand/rust-macro-builtins.cc: Add proper parsing of format_args input. * hir/rust-ast-lower-base.cc: Include diagnostics header. libgrust/ChangeLog: * libformat_parser/src/lib.rs: Switch interface to use more parser parameters. * libformat_parser/src/bin.rs: Use new interface.
Showing
- gcc/rust/ast/rust-ast.cc 51 additions, 0 deletionsgcc/rust/ast/rust-ast.cc
- gcc/rust/ast/rust-builtin-ast-nodes.h 122 additions, 11 deletionsgcc/rust/ast/rust-builtin-ast-nodes.h
- gcc/rust/ast/rust-fmt.cc 35 additions, 3 deletionsgcc/rust/ast/rust-fmt.cc
- gcc/rust/ast/rust-fmt.h 18 additions, 3 deletionsgcc/rust/ast/rust-fmt.h
- gcc/rust/expand/rust-macro-builtins.cc 141 additions, 41 deletionsgcc/rust/expand/rust-macro-builtins.cc
- gcc/rust/hir/rust-ast-lower-base.cc 1 addition, 0 deletionsgcc/rust/hir/rust-ast-lower-base.cc
- libgrust/libformat_parser/src/bin.rs 4 additions, 1 deletionlibgrust/libformat_parser/src/bin.rs
- libgrust/libformat_parser/src/lib.rs 44 additions, 19 deletionslibgrust/libformat_parser/src/lib.rs
Loading
Please register or sign in to comment