<div dir="ltr">Hi,<div><br></div><div><br></div><div style>  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. </div>
<div style><br></div><div style>The problems I am facing is that how do I figure out the dimensionality of the arrays and the respective size of each dimension ?</div><div style><br></div><div style>In the AST, the declaration is of the DeclStmt . How do I get the size and type information from the Decl object ? </div>
<div style>Is that information available in the Type class ? If not, what classes do I need to look at ?</div><div style><br></div><div style>Regards,</div><div style>Prateek</div><div style><br></div><div style>P.S : I know this might be too basic for the experts out here, but still any pointers will be appreciated,</div>
</div>