diff options
author | Arthur Cohen <arthur.cohen@embecosm.com> | 2023-01-13 12:16:49 +0100 |
---|---|---|
committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2023-02-08 12:02:40 +0100 |
commit | 51533ca7651312952cc5cb5ee9f2fb7f6668c85c (patch) | |
tree | 62feb804d42d353a9797b13cc97d8a67073f979b /gcc/rust/parse/rust-parse.h | |
parent | d555ef1800b8a6bcbd67fafe87e70dba556650bd (diff) | |
download | gcc-51533ca7651312952cc5cb5ee9f2fb7f6668c85c.zip gcc-51533ca7651312952cc5cb5ee9f2fb7f6668c85c.tar.gz gcc-51533ca7651312952cc5cb5ee9f2fb7f6668c85c.tar.bz2 |
parser: Expose parse_macro_invocation as public API
gcc/rust/ChangeLog:
* parse/rust-parse.h: Move `parse_macro_invocation` to public API.
Diffstat (limited to 'gcc/rust/parse/rust-parse.h')
-rw-r--r-- | gcc/rust/parse/rust-parse.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/rust/parse/rust-parse.h b/gcc/rust/parse/rust-parse.h index 2f767bb..a4b65c5 100644 --- a/gcc/rust/parse/rust-parse.h +++ b/gcc/rust/parse/rust-parse.h @@ -150,6 +150,8 @@ public: std::unique_ptr<AST::TokenTree> parse_token_tree (); AST::Attribute parse_attribute_body (); AST::AttrVec parse_inner_attributes (); + std::unique_ptr<AST::MacroInvocation> + parse_macro_invocation (AST::AttrVec outer_attrs); private: void skip_after_semicolon (); @@ -201,8 +203,6 @@ private: parse_decl_macro_def (AST::Visibility vis, AST::AttrVec outer_attrs); std::unique_ptr<AST::MacroInvocation> parse_macro_invocation_semi (AST::AttrVec outer_attrs); - std::unique_ptr<AST::MacroInvocation> - parse_macro_invocation (AST::AttrVec outer_attrs); AST::MacroRule parse_macro_rule (); AST::MacroMatcher parse_macro_matcher (); std::unique_ptr<AST::MacroMatch> parse_macro_match (); |