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
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
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
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