public inbox for gcc-cvs@sourceware.org help / color / mirror / Atom feed
From: Thomas Schwinge <tschwinge@gcc.gnu.org> To: gcc-cvs@gcc.gnu.org Subject: [gcc/devel/rust/master] Merge #981 Date: Wed, 8 Jun 2022 12:14:05 +0000 (GMT) [thread overview] Message-ID: <20220608121405.B609C3816664@sourceware.org> (raw) https://gcc.gnu.org/g:e82b59dfc9319d72f891bac099bfa0f46d8b8c99 commit e82b59dfc9319d72f891bac099bfa0f46d8b8c99 Merge: ed1a4dc33fa 27be628911a Author: bors[bot] <26634292+bors[bot]@users.noreply.github.com> Date: Tue Mar 1 11:36:13 2022 +0000 Merge #981 981: macro-expand: Add SubstitutionCtx class in its own file r=CohenArthur a=CohenArthur The `MacroExpander` class had multiple static functions which were constantly passing the same parameters around for expansion. This refactor adds a new `SubstituteCtx` class which keeps track of the three common arguments given to the substitute functions, and offers these implementations in a new source file to keep the original expander light. Closes #957 Co-authored-by: Arthur Cohen <arthur.cohen@embecosm.com> Diff: gcc/rust/Make-lang.in | 1 + gcc/rust/expand/rust-macro-expand.cc | 221 +-------------------------- gcc/rust/expand/rust-macro-expand.h | 58 ------- gcc/rust/expand/rust-macro-substitute-ctx.cc | 206 +++++++++++++++++++++++++ gcc/rust/expand/rust-macro-substitute-ctx.h | 80 ++++++++++ 5 files changed, 291 insertions(+), 275 deletions(-)
reply other threads:[~2022-06-08 12:14 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20220608121405.B609C3816664@sourceware.org \ --to=tschwinge@gcc.gnu.org \ --cc=gcc-cvs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).