diff options
| author | Veikka Tuominen <git@vexu.eu> | 2022-05-29 12:04:50 +0300 |
|---|---|---|
| committer | Veikka Tuominen <git@vexu.eu> | 2022-05-29 12:04:50 +0300 |
| commit | ee651c3cd358f40f60db0bbcd82ffde99aed9b88 (patch) | |
| tree | 5d5830d5b3ce6c13041aacb7e073763551cb4852 /src/zig_clang.cpp | |
| parent | 22cb6938891c73d64b749a2516c8eaf79aa25b03 (diff) | |
| download | zig-ee651c3cd358f40f60db0bbcd82ffde99aed9b88.tar.gz zig-ee651c3cd358f40f60db0bbcd82ffde99aed9b88.zip | |
Revert "reserve correct space for bitfields"
This reverts commit 22cb6938891c73d64b749a2516c8eaf79aa25b03.
Diffstat (limited to 'src/zig_clang.cpp')
| -rw-r--r-- | src/zig_clang.cpp | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/zig_clang.cpp b/src/zig_clang.cpp index 0ceffe4c3d..ea3f09c8d5 100644 --- a/src/zig_clang.cpp +++ b/src/zig_clang.cpp @@ -3335,18 +3335,6 @@ bool ZigClangFieldDecl_isBitField(const struct ZigClangFieldDecl *self) { return casted->isBitField(); } -unsigned ZigClangFieldDecl_getBitWidthValue( const struct ZigClangFieldDecl *self, const ZigClangASTContext *ctx) { - auto casted = reinterpret_cast<const clang::FieldDecl *>(self); - auto casted_ctx = const_cast<clang::ASTContext *>(reinterpret_cast<const clang::ASTContext *>(ctx)); - return casted->getBitWidthValue(*casted_ctx); -} - -bool ZigClangFieldDecl_isZeroLengthBitField( ZigClangFieldDecl *self, const ZigClangASTContext *ctx) { - auto casted = reinterpret_cast<const clang::FieldDecl *>(self); - auto casted_ctx = const_cast<clang::ASTContext *>(reinterpret_cast<const clang::ASTContext *>(ctx)); - return casted->isZeroLengthBitField(*casted_ctx); -} - bool ZigClangFieldDecl_isAnonymousStructOrUnion(const ZigClangFieldDecl *field_decl) { return reinterpret_cast<const clang::FieldDecl*>(field_decl)->isAnonymousStructOrUnion(); } |
