diff options
author | SimplyTheOther <simplytheother@gmail.com> | 2020-12-09 17:42:16 +0800 |
---|---|---|
committer | SimplyTheOther <simplytheother@gmail.com> | 2020-12-09 17:42:16 +0800 |
commit | 53ddea7a266c43f30702b0c24ce05e4d5dad0ecc (patch) | |
tree | df37183b3b068ea00f0e88e80d4bbb8f621fbbf8 /gcc/rust/ast/rust-macro.h | |
parent | b343d117f5cf7976d3c4c93d9595e2471d780acd (diff) | |
download | gcc-53ddea7a266c43f30702b0c24ce05e4d5dad0ecc.zip gcc-53ddea7a266c43f30702b0c24ce05e4d5dad0ecc.tar.gz gcc-53ddea7a266c43f30702b0c24ce05e4d5dad0ecc.tar.bz2 |
Fixed formatting to fit gcc style
Diffstat (limited to 'gcc/rust/ast/rust-macro.h')
-rw-r--r-- | gcc/rust/ast/rust-macro.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/gcc/rust/ast/rust-macro.h b/gcc/rust/ast/rust-macro.h index 2a97854..5760392 100644 --- a/gcc/rust/ast/rust-macro.h +++ b/gcc/rust/ast/rust-macro.h @@ -132,8 +132,7 @@ public: {} // Copy constructor with clone - MacroMatchRepetition (MacroMatchRepetition const &other) - : op (other.op) + MacroMatchRepetition (MacroMatchRepetition const &other) : op (other.op) { // guard to protect from null pointer dereference if (other.sep != nullptr) @@ -291,7 +290,7 @@ class MacroRulesDefinition : public MacroItem { std::vector<Attribute> outer_attrs; Identifier rule_name; - // MacroRulesDef rules_def; + // MacroRulesDef rules_def; // only curly without required semicolon at end DelimType delim_type; // MacroRules rules; @@ -363,7 +362,7 @@ protected: { return new MacroInvocation (*this); } - + /* Use covariance to implement clone function as returning this object rather * than base */ MacroInvocation *clone_expr_without_block_impl () const override |