<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On Aug 23, 2010, at 10:23 AM, Murat B wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><table cellspacing="0" cellpadding="0" border="0" style="position: static; z-index: auto; "><tbody><tr><td valign="top" style="font: inherit;">Thanks for the reply Doug!<br><br>I have following situation, I have a variable T of class Type which is the type of the array size expression.<br><br>My function progress following way.<br>ArrayType *AT = dyn_cast<ArrayType>(T);<br>if (VariableArrayType::classof(AT)<br> ......................<br>else if (ConstantArrayType::classof(AT) {<br> ConstantArrayType *CAT = cast<ConstantArrayType>(AT);<br>}<br><br>For the structure field the type will be ConstantArrayType. Can you tell me how I can get TypeSourceInfo from it.<br></td></tr></tbody></table></blockquote></div><br><div>As I said before, you need to get the TypeSourceInfo from the *field*, i.e., the FieldDecl.</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre"> </span>- Doug</div></body></html>