]> git.ipfire.org Git - thirdparty/gcc.git/commit
c++/reflection: introduce METAFN_KIND_ARG
authorMarek Polacek <polacek@redhat.com>
Wed, 18 Feb 2026 20:03:35 +0000 (15:03 -0500)
committerMarek Polacek <polacek@redhat.com>
Thu, 19 Feb 2026 13:36:31 +0000 (08:36 -0500)
commitdfd55005ea37841ac30ec64e76457c6dfe7454db
tree4bb6739c4322547ebf977eeba763a802bfe4beca
parent8eb03ad712bdbd31f9a1c84b72bcbf0c5ef1b722
c++/reflection: introduce METAFN_KIND_ARG

This is mostly cosmetic.  It had to be a macro because a constexpr fn
would need a metafn_info* parameter but that struct comes only after
the %{ %} section in the gperf file, and we can only have one such
section.

gcc/cp/ChangeLog:

* metafns.gperf: Define METAFN_KIND_ARG.
* metafns.h: Regenerate.
* reflect.cc (process_metafunction): Use METAFN_KIND_ARG.

Reviewed-by: Jason Merrill <jason@redhat.com>
gcc/cp/metafns.gperf
gcc/cp/metafns.h
gcc/cp/reflect.cc