diff options
author | Arthur Cohen <arthur.cohen@embecosm.com> | 2022-10-19 14:53:43 +0200 |
---|---|---|
committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2023-02-21 12:36:37 +0100 |
commit | b326cced19e5f4d240369fa1f6dc4a4417fd4f6d (patch) | |
tree | 42ce041702158c062150bb7cac671b5efb1daa17 /gcc/rust/backend/rust-compile-expr.h | |
parent | 68e743090df65d936305620bacfa1e766011d027 (diff) | |
download | gcc-b326cced19e5f4d240369fa1f6dc4a4417fd4f6d.zip gcc-b326cced19e5f4d240369fa1f6dc4a4417fd4f6d.tar.gz gcc-b326cced19e5f4d240369fa1f6dc4a4417fd4f6d.tar.bz2 |
gccrs: ast: Improve Fragment API
gcc/rust/ChangeLog:
* ast/rust-ast-fragment.cc (Fragment::Fragment): Add better APIs.
(Fragment::complete): New function.
(Fragment::unexpanded): New function.
* ast/rust-ast-fragment.h: Declare new APIs and add documentation.
* expand/rust-attribute-visitor.h: Use new Fragment API.
* expand/rust-macro-builtins.cc (MacroBuiltin::file): Likewise.
(MacroBuiltin::column): Likewise.
(MacroBuiltin::include_bytes): Likewise.
(MacroBuiltin::include_str): Likewise.
(MacroBuiltin::concat): Likewise.
(MacroBuiltin::env): Likewise.
(MacroBuiltin::cfg): Likewise.
(MacroBuiltin::include): Likewise.
(MacroBuiltin::line): Likewise.
* expand/rust-macro-expand.cc (parse_many): Likewise.
(transcribe_expression): Likewise.
(transcribe_type): Likewise.
* expand/rust-macro-expand.h (struct MacroExpander): Likewise.
Diffstat (limited to 'gcc/rust/backend/rust-compile-expr.h')
0 files changed, 0 insertions, 0 deletions