diff options
author | Alexandru Croitor <alexandru.croitor@qt.io> | 2018-01-12 15:31:40 +0100 |
---|---|---|
committer | Alexandru Croitor <alexandru.croitor@qt.io> | 2018-01-15 15:19:03 +0000 |
commit | 4e024076fe9562b939d7936b6bf22c25507b2120 (patch) | |
tree | e270382cfd51066514f8aaedb7a51e394e184a89 /sources/shiboken2/libshiboken/basewrapper.cpp | |
parent | 38ca3c64de743e294a95f43a71a79e81ada41851 (diff) |
Fix system header inclusions for proper support of C primitive types
In order for GL types like GLint64 to be available on macOS, the
macOS-specific system header "gltypes.h" has to be parsed by libclang.
Before this change, shiboken skipped parsing system headers (except
for gl.h) because there are issues when trying to parse C++ std headers
(ostream for example).
The file "gltypes.h" contains the typedef declarations for GL numeric
types. A few other system headers like "cstdint" are also needed
(which contain the actual typedefs from int32_t to int for example).
A few different system headers are also needed on Linux (also for
GL -> numeric typedefs).
This system header exclusion mechanism is far from a clean solution,
but it seems like current versions of libclang do not provide enough
preprocessor information to be able to limit the parsing to specific
chunks of code (for example everything included by gltypes.h), thus
we need to limit ourselves to exclusion by file paths.
Change-Id: I58c151e2cb083e16f7cafb3dc9df2d757442bb59
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Reviewed-by: Christian Tismer <tismer@stackless.com>
Diffstat (limited to 'sources/shiboken2/libshiboken/basewrapper.cpp')
0 files changed, 0 insertions, 0 deletions