[cfe-dev] Feature/opinion request

Jacob Carlborg doob at me.com
Thu Oct 11 04:22:25 PDT 2012


On 2012-10-11 09:04, Unai Landa wrote:
> Hello, I have the idea of a flag that emulates D behavior on variable initialization, I mean initialize all members to 0 by default, and allow explicit modify this behavior on performance sensitive code.
>
> I think this could be an interesting compilation flag or pragma.
>
> What's your opinion?

As a D user I can say that this is a feature that is really, really nice 
to have. But I would guess that Clang would go in the direction of 
static analysis instead.

-- 
/Jacob Carlborg




More information about the cfe-dev mailing list