atilaneves / dpp

Directly include C headers in D source code
Boost Software License 1.0
230 stars 31 forks source link

Accessors for members of anonymous records are renamed when the members are keywords #213

Closed cbecerescu closed 4 years ago

cbecerescu commented 4 years ago

Previously, in a case like the one below

struct A {
    union {
        unsigned int version;
        char module;
    };
};

the members themselves would be renamed (to version and module), but the accessor function names would not (they would be auto version(...) and auto module(...)).