public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc/devel/rust/master] Merge #981
@ 2022-06-08 12:14 Thomas Schwinge
  0 siblings, 0 replies; only message in thread
From: Thomas Schwinge @ 2022-06-08 12:14 UTC (permalink / raw)
  To: gcc-cvs

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(-)


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-06-08 12:14 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-08 12:14 [gcc/devel/rust/master] Merge #981 Thomas Schwinge

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).