David, Thanks for sharing! I found the ref-track plugins at the bottom of- on surface - doing something similar (in terms of injecting code based on objects). I will dig further to learn understand.
Yair. Sent from my iPad > On Apr 30, 2026, at 19:47, David Malcolm <[email protected]> wrote: > On Thu, 2026-04-30 at 13:28 +0200, Jakub Jelinek via Gcc wrote: >> On Thu, Apr 30, 2026 at 02:08:33PM +0300, Yair Lenga via Gcc wrote: >>> Looking for any feedback about the >>> 1, Idea/concept. >>> 2. The implementation of the pugin (Github URL) >>> 3. Is there a path for making it an experimental/official GCC >>> extension? (after cleanup, reviews, adding test cases/, etc.) >> >> I don't think we have a repository of GCC plugins (except some >> plugins >> in the testsuite, gcc.dg/plugin/ and g++.dg/plugin/ ). > > FWIW we have a "table of plugins we know about" here: > https://gcc.gnu.org/wiki/plugins > > Dave > >> >> BTW, in C++26 one doesn't need a plugin for such things, in a few >> lines >> it can be written using C++26 reflection. >> >> Jakub
