diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2022-03-01 11:36:13 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-01 11:36:13 +0000 |
commit | e82b59dfc9319d72f891bac099bfa0f46d8b8c99 (patch) | |
tree | a91c15fb63b9543661d892efb5fbe94dbe73ee52 /gcc/rust/backend/rust-compile-resolve-path.cc | |
parent | ed1a4dc33fa78808fefaf020015b2177d7cdc1ce (diff) | |
parent | 27be628911a8df4d83b3770f9c5491bc7b410c2f (diff) | |
download | gcc-e82b59dfc9319d72f891bac099bfa0f46d8b8c99.zip gcc-e82b59dfc9319d72f891bac099bfa0f46d8b8c99.tar.gz gcc-e82b59dfc9319d72f891bac099bfa0f46d8b8c99.tar.bz2 |
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>
Diffstat (limited to 'gcc/rust/backend/rust-compile-resolve-path.cc')
0 files changed, 0 insertions, 0 deletions