[cfe-commits] [PATCH] VisitInitListExpr

Zhongxing Xu xuzhongxing at gmail.com
Wed Oct 29 18:35:51 PDT 2008


This patch implements GRExprEngine::VisitInitListExpr(). CompoundValsData is
added to BasicValue classes. I found it can represent recursive struct
compound value, so we do not need to flatten struct init list values. (not
implemented in this patch).

A full visit is done on each initializer bacause initializer can contain
arbitrary expressions. But no state splitting is allowed. Reasons are: state
splitting is rare in initializers, and implementing state splitting is not
easy when visiting a unknown length sequence of expressions.

I post this patch for review since it involves some heavy design. Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20081030/30470298/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: initlist.patch
Type: application/octet-stream
Size: 8960 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20081030/30470298/attachment.obj>


More information about the cfe-commits mailing list