diff options
author | Nala Ginrut <mulei@gnu.org> | 2021-02-26 01:13:40 +0800 |
---|---|---|
committer | Philip Herron <herron.philip@googlemail.com> | 2021-03-01 10:34:45 +0000 |
commit | 06bb1d6542a9d07f4d866613a5b039be7bcb5f95 (patch) | |
tree | 3949e67a2500daacf53c6fc1f2746e91918aefdd /gcc/rust/expand/rust-macro-expand.h | |
parent | 684123ebc43cefa9d15c85ee770a542c079ae201 (diff) | |
download | gcc-06bb1d6542a9d07f4d866613a5b039be7bcb5f95.zip gcc-06bb1d6542a9d07f4d866613a5b039be7bcb5f95.tar.gz gcc-06bb1d6542a9d07f4d866613a5b039be7bcb5f95.tar.bz2 |
Update default configs in ExpansionCfg
Diffstat (limited to 'gcc/rust/expand/rust-macro-expand.h')
-rw-r--r-- | gcc/rust/expand/rust-macro-expand.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/gcc/rust/expand/rust-macro-expand.h b/gcc/rust/expand/rust-macro-expand.h index 2e9b88b..89e3171 100644 --- a/gcc/rust/expand/rust-macro-expand.h +++ b/gcc/rust/expand/rust-macro-expand.h @@ -31,13 +31,16 @@ class MacroInvocation; } // Object used to store configuration data for macro expansion. +// NOTE: Keep all these items complying with the latest rustc. struct ExpansionCfg { // features? - unsigned int recursion_limit = 50; // TODO: determine default recursion limit - // trace macros? - // should test? - // more default stuff? + // TODO: Add `features' when we have it. + unsigned int recursion_limit = 1024; + bool trace_mac = false; // trace macro + bool should_test = false; // strip #[test] nodes if false + bool keep_macs = false; // keep macro definitions + std::string crate_name = ""; }; // Object used to store shared data (between functions) for macro expansion. |