]> gcc.gnu.org Git - gcc.git/commit
macros: Add abstraction around multiple matches
authorArthur Cohen <arthur.cohen@embecosm.com>
Wed, 9 Mar 2022 16:30:35 +0000 (17:30 +0100)
committerCohenArthur <arthur.cohen@epita.fr>
Thu, 10 Mar 2022 20:45:34 +0000 (21:45 +0100)
commit9f73e827aba2d485898e9c2d3d4adcca1b2cf77d
treea55b255cbd043db814cc6b736559f76d8fd982ea
parent39c04258300be68a36b80f2f23929a97e8af1865
macros: Add abstraction around multiple matches

Adds an extra layer of abstraction around keeping multiple matches for
the same fragment. This avoids ugly code fetching the first match in
order to get the amounf of matches given by the user, while still
allowing zero-matches to exist.

Co-authored-by: philberty <philip.herron@embecosm.com>
gcc/rust/expand/rust-macro-expand.cc
gcc/rust/expand/rust-macro-expand.h
gcc/rust/expand/rust-macro-substitute-ctx.cc
gcc/rust/expand/rust-macro-substitute-ctx.h
This page took 0.05528 seconds and 6 git commands to generate.