aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/expand/rust-macro-expand.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/expand/rust-macro-expand.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/expand/rust-macro-expand.h')
-rw-r--r--gcc/rust/expand/rust-macro-expand.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/gcc/rust/expand/rust-macro-expand.h b/gcc/rust/expand/rust-macro-expand.h
index a7fe076..c8c7f35 100644
--- a/gcc/rust/expand/rust-macro-expand.h
+++ b/gcc/rust/expand/rust-macro-expand.h
@@ -27,7 +27,8 @@ struct MacroExpander
ExpansionCfg cfg;
unsigned int expansion_depth = 0;
- MacroExpander (AST::Crate &crate, ExpansionCfg cfg, Session &session) : cfg (cfg), crate (crate), session (session)
+ MacroExpander (AST::Crate &crate, ExpansionCfg cfg, Session &session)
+ : cfg (cfg), crate (crate), session (session)
{}
~MacroExpander () = default;
@@ -40,8 +41,8 @@ struct MacroExpander
// should this be public or private?
void expand_invoc (std::unique_ptr<AST::MacroInvocation> &invoc);
- void expand_cfg_attrs(std::vector<AST::Attribute>& attrs);
- bool fails_cfg(std::vector<AST::Attribute>& attr);
+ void expand_cfg_attrs (std::vector<AST::Attribute> &attrs);
+ bool fails_cfg (std::vector<AST::Attribute> &attr);
/* TODO: make it extend ASTVisitor so that individual items can be accessed
* properly? */