D compiler equivilent of "gcc -E" for debug/view template instantiation(generated) code?

dangbinghoo dangbinghoo at gmail.com
Fri Jul 30 08:21:16 UTC 2021


On Friday, 30 July 2021 at 06:46:18 UTC, WebFreak001 wrote:
> On Friday, 30 July 2021 at 06:00:41 UTC, dangbinghoo wrote:
>
> Not sure if this is exactly what you want but there is a hidden 
> switch in dmd called `-vcg-ast` that prints out all the 
> templates instantiated.
>
> On run.dlang.io you can use the "AST" button to view this 
> conveniently online.

thanks a lot! this is truelly what I exactly want! it's great!



More information about the Digitalmars-d-learn mailing list