Extending the core language via a gcc plugin possible?
U.Mutlu
um@mutluit.com
Mon Jun 18 00:08:00 GMT 2018
Hi,
is it possible to add a private extension to the
core language (C/C++) by writing a gcc plugin?
The extension in mind is something like this
[variable_definitions;]
Later I want this be possible also inside statement headers, for example
for ([double d = 1.0; bool f = false;] size_t i = 0; i < vec.size(); ++i)
...
The scope of the so-defined variables shall be the same scope they are in,
ie. in the for-loop case just the scope of the for-loop itself, much like the
case with i.
Any way?
More information about the Gcc-help
mailing list