<div dir="ltr">Hi all, <div><br></div><div>I want to get the types' information in my checker. The method interface I am using is checkPostStmt(const CStyleCastExpr *cec, CheckerContext &C) const;</div><div><br></div>
<div>For example, there is a statement:</div><div>int *pi;</div><div>char *pc;</div><div>int a = 3;</div><div>pi = &a;</div><div>pc = (char *)pi;</div><div><br></div><div>After analysing "<i>(char *)pi;</i>", I want to get the type-related information, that is, the original type is <i>int*</i>, the casted type is <i>char *</i>. So how can I get that target? Thanks a lot.</div>
<div><div><br></div>-- <br><div dir="ltr"><font color="#444444">Best regards,</font><div><font color="#444444">Arthur Yoo</font></div></div>
</div></div>