jckarter/clay — Issue #198: [bindgen] doesn't correctly generate some typedefs
Author: Blei
Created: 2012-01-24 09:21:32+00:00
State: open

Taken from the headers that are distributed with clang 3.0 (stddef.h):

```c
typedef __typeof__(((int*)0)-((int*)0)) ptrdiff_t;
typedef __typeof__(sizeof(int)) size_t;
```

This produces

```
alias ptrdiff_t = Opaque /* unknown NoDeclFound */;

alias size_t = Opaque /* unknown NoDeclFound */;
```

which is unfortunate if anyone decides to generate the libc or unix bindings with the clang headers, as everything will explode with this `size_t`. Works with the gcc headers though.