[cfe-dev] What are ImplicitValueExpr?

Douglas Gregor dgregor at apple.com
Mon Feb 9 06:12:09 PST 2009


On Feb 9, 2009, at 5:42 AM, Paolo Bolzoni wrote:

> dear cfe-dev list,
>
> Visiting the clang AST after the semantic analysis the designated
> initialisers often keep classes of this type.
>
> What is his meaning? Is it just a filler that means `zero in this  
> place, but
> the user omitted it' or there is some other meaning?

Yes, exactly. It means that the subobject in that place will be  
initialized with all 0s, but since the user didn't actually write a  
'0' there we have a different AST node for it.

The documentation is a bit weak, unfortunately:

	http://clang.llvm.org/doxygen/classclang_1_1ImplicitValueInitExpr.html

	- Doug




More information about the cfe-dev mailing list