[cfe-dev] Multi-Dimensional Arrays

Prateek Saxena thisisprateeksaxena at gmail.com
Mon Sep 30 01:45:04 PDT 2013


Hi,


  I am looking towards writing a AST visitor using the RecursiveASTVisitor
class. I am done with the simple variables and operators. However, now I am
trying to write visitors for arrays.

The problems I am facing is that how do I figure out the dimensionality of
the arrays and the respective size of each dimension ?

In the AST, the declaration is of the DeclStmt . How do I get the size and
type information from the Decl object ?
Is that information available in the Type class ? If not, what classes do I
need to look at ?

Regards,
Prateek

P.S : I know this might be too basic for the experts out here, but still
any pointers will be appreciated,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20130930/50deacdb/attachment.html>


More information about the cfe-dev mailing list