[cfe-dev] abort calling getTypeSize
Dmitri Gribenko
gribozavr at gmail.com
Mon Feb 25 04:20:44 PST 2013
On Mon, Feb 25, 2013 at 6:17 AM, Peeter Joot <peeter.joot at gmail.com> wrote:
> Fair enough. However, I'm doing this in an AST visitor, attempting to dump
> our the size and offset information for any structures encountered. How
> would I check whether or not the field in question is appropriate for a call
> to getTypeSize()?
You can check for dependent types with isDependentType(). Note that
one can not compute size of an incomplete type, too.
Dmitri
--
main(i,j){for(i=2;;i++){for(j=2;j<i;j++){if(!(i%j)){j=0;break;}}if
(j){printf("%d\n",i);}}} /*Dmitri Gribenko <gribozavr at gmail.com>*/
More information about the cfe-dev
mailing list