[cfe-dev] How can I get the types' information in CStyleCastExpr
Arthur Yoo
phjy007 at gmail.com
Mon Sep 9 06:38:42 PDT 2013
Hi all,
I want to get the types' information in my checker. The method interface I
am using is checkPostStmt(const CStyleCastExpr *cec, CheckerContext &C)
const;
For example, there is a statement:
int *pi;
char *pc;
int a = 3;
pi = &a;
pc = (char *)pi;
After analysing "*(char *)pi;*", I want to get the type-related
information, that is, the original type is *int**, the casted type is *char
**. So how can I get that target? Thanks a lot.
--
Best regards,
Arthur Yoo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20130909/0d93c8e3/attachment.html>
More information about the cfe-dev
mailing list