[cfe-dev] can we know if an array definition has an explicit size ??

kevinlynx kevinlynx at gmail.com
Sat Jan 5 22:10:19 PST 2013


say,

    int arr[] = { 1, 2, 3 }

here `arr` size is determined by the initializer expression automatically, but how to know this ? I implement `RecursiveASTVisitor::VisitVarDecl` and get a `VarDecl` object.

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


More information about the cfe-dev mailing list