aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/ast/rust-macro.h
diff options
context:
space:
mode:
authorSimplyTheOther <simplytheother@gmail.com>2020-12-09 17:42:16 +0800
committerSimplyTheOther <simplytheother@gmail.com>2020-12-09 17:42:16 +0800
commit53ddea7a266c43f30702b0c24ce05e4d5dad0ecc (patch)
treedf37183b3b068ea00f0e88e80d4bbb8f621fbbf8 /gcc/rust/ast/rust-macro.h
parentb343d117f5cf7976d3c4c93d9595e2471d780acd (diff)
downloadgcc-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.h7
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