Re: how to instrument dmd compiler to dump all references to a given symbol?

2018-01-13 Thread Seb via Digitalmars-d
On Sunday, 14 January 2018 at 02:36:02 UTC, Timothee Cour wrote: eg: how to instrument dmd compiler to dump all references to a given symbol? eg: for `A.a` it should output the locations marked with HERE any help/starting points would be appreciated! ``` Struct A{ int a; void fun(){ a

Re: how to instrument dmd compiler to dump all references to a given symbol?

2018-01-13 Thread Shachar Shemesh via Digitalmars-d
On 14/01/18 04:42, Adam D. Ruppe wrote: On Sunday, 14 January 2018 at 02:36:02 UTC, Timothee Cour wrote: how to instrument dmd compiler to dump all references to a given symbol? you can actually do it with your own code. behold: struct A{ //int a; // comment this line int _a; // make the

Re: how to instrument dmd compiler to dump all references to a given symbol?

2018-01-13 Thread Adam D. Ruppe via Digitalmars-d
On Sunday, 14 January 2018 at 02:36:02 UTC, Timothee Cour wrote: how to instrument dmd compiler to dump all references to a given symbol? you can actually do it with your own code. behold: struct A{ //int a; // comment this line int _a; // make the actual var renamed... // then add a ref

how to instrument dmd compiler to dump all references to a given symbol?

2018-01-13 Thread Timothee Cour via Digitalmars-d
eg: how to instrument dmd compiler to dump all references to a given symbol? eg: for `A.a` it should output the locations marked with HERE any help/starting points would be appreciated! ``` Struct A{ int a; void fun(){ a++; // HERE alias b=a; b++; // HERE } } void fun(){ int a; // NOT