aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArthur Cohen <arthur.cohen@embecosm.com>2023-01-13 12:16:49 +0100
committerArthur Cohen <arthur.cohen@embecosm.com>2023-04-06 10:47:22 +0200
commitf548ddee96aee58e74935719dc672cab34d4ef97 (patch)
tree12e1098e7365a9d679faf40ed16b8cabe4c6d50e
parent1c57244dbc0550ababfb4bf6b12511cede580072 (diff)
downloadgcc-f548ddee96aee58e74935719dc672cab34d4ef97.zip
gcc-f548ddee96aee58e74935719dc672cab34d4ef97.tar.gz
gcc-f548ddee96aee58e74935719dc672cab34d4ef97.tar.bz2
gccrs: parser: Expose parse_macro_invocation as public API
gcc/rust/ChangeLog: * parse/rust-parse.h: Move `parse_macro_invocation` to public API.
-rw-r--r--gcc/rust/parse/rust-parse.h4
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 ();