diff options
author | Arthur Cohen <arthur.cohen@embecosm.com> | 2022-03-03 14:16:02 +0100 |
---|---|---|
committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2022-03-03 15:20:55 +0100 |
commit | ab4533dab7a5be7c900012f40dbeb3fc0cce0456 (patch) | |
tree | 63362d5c7259b8f0bae058588d46023872cee80d /gcc/rust/expand/rust-macro-expand.h | |
parent | 25a33b0739d549c4c2937bb7035a769c0170ba65 (diff) | |
download | gcc-ab4533dab7a5be7c900012f40dbeb3fc0cce0456.zip gcc-ab4533dab7a5be7c900012f40dbeb3fc0cce0456.tar.gz gcc-ab4533dab7a5be7c900012f40dbeb3fc0cce0456.tar.bz2 |
macros: Match repetition separator properly
Diffstat (limited to 'gcc/rust/expand/rust-macro-expand.h')
-rw-r--r-- | gcc/rust/expand/rust-macro-expand.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/gcc/rust/expand/rust-macro-expand.h b/gcc/rust/expand/rust-macro-expand.h index 9309323..617d16b 100644 --- a/gcc/rust/expand/rust-macro-expand.h +++ b/gcc/rust/expand/rust-macro-expand.h @@ -192,7 +192,7 @@ struct MacroExpander * Match any amount of matches * * @param parser Parser to use for matching - * @param matches All consecutive matches to identify + * @param rep Repetition to try and match * @param match_amount Reference in which to store the ammount of succesful * and valid matches * @@ -209,9 +209,8 @@ struct MacroExpander * otherwise */ bool match_n_matches (Parser<MacroInvocLexer> &parser, - std::vector<std::unique_ptr<AST::MacroMatch>> &matches, - size_t &match_amount, size_t lo_bound = 0, - size_t hi_bound = 0); + AST::MacroMatchRepetition &rep, size_t &match_amount, + size_t lo_bound = 0, size_t hi_bound = 0); void push_context (ContextType t) { context.push_back (t); } |