diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2020-01-06 19:21:55 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-01-06 19:21:55 -0500 |
| commit | baaef7ed977a8c3d5df2aef673185101abc381d4 (patch) | |
| tree | aa80b2e23a588684b4b1b0e2a18557882f5f569b /src/zig_clang.cpp | |
| parent | bf678a12dfbdf0b3bb50804aa6b7ee081013049a (diff) | |
| parent | eca294cd23b3b1cdb4a94fb37dfe52eeb0a7c51d (diff) | |
| download | zig-baaef7ed977a8c3d5df2aef673185101abc381d4.tar.gz zig-baaef7ed977a8c3d5df2aef673185101abc381d4.zip | |
Merge pull request #4083 from LemonBoy/better-stdbool
Better _Bool translation
Diffstat (limited to 'src/zig_clang.cpp')
| -rw-r--r-- | src/zig_clang.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/zig_clang.cpp b/src/zig_clang.cpp index 9d88f071c0..aaf4ae40a5 100644 --- a/src/zig_clang.cpp +++ b/src/zig_clang.cpp @@ -1814,6 +1814,11 @@ ZigClangQualType ZigClangType_getPointeeType(const ZigClangType *self) { return bitcast(casted->getPointeeType()); } +bool ZigClangType_isBooleanType(const ZigClangType *self) { + auto casted = reinterpret_cast<const clang::Type *>(self); + return casted->isBooleanType(); +} + bool ZigClangType_isVoidType(const ZigClangType *self) { auto casted = reinterpret_cast<const clang::Type *>(self); return casted->isVoidType(); |
