[cfe-dev] size of a QualType
Fariborz Jahanian
fjahanian at apple.com
Thu Aug 19 08:12:02 PDT 2010
You can do. Context.getTypeSize(QT).
There are lots of examples in CodeGen Directory.
- Fariborz
On Aug 19, 2010, at 4:01 AM, Jan Bierbaum wrote:
> Hi again!
>
> Given a QualType, is there an easy way to get the size that type will
> take after compilation? Basically I'm looking for the functionality
> 'sizeof' would provide inside the compiled program.
>
> My own searches through the sources were quite fruitless...
>
>
> Regards, Jan
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
More information about the cfe-dev
mailing list