[cfe-dev] CFG and CXXDefaultInitExpr

Enrico P epertoso at google.com
Fri Oct 18 09:19:55 PDT 2013


Hello,

I'm doing some work on -Wuninitialized to make it detect the use of
uninitialized fields within C++ constructor bodies.

When the CFGBuilder visits a CXXDefaultInitExpr, it won't visit its
children because CXXDefaultInitExpr::children() returns an empty
child_range.

Is there any reason for this (maybe related to the comment at line 1108 of
CFG.cpp?), or is it safe to have it return a non-empty child_range?

Thanks,
Enrico
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20131018/d8eae65d/attachment.html>


More information about the cfe-dev mailing list