Better _Bool translation

This commit is contained in:
LemonBoy
2020-01-05 20:02:28 +01:00
parent 6ff70d3c31
commit cd39f6df95
5 changed files with 48 additions and 4 deletions

View File

@@ -1809,6 +1809,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();