Skip to content

Commit 705e165

Browse files
committed
Rename Struct::isBitField to hasBitField
1 parent 531c598 commit 705e165

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

bindgen/ir/Struct.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ Struct::Struct(std::string name, std::vector<std::shared_ptr<Field>> fields,
3333
uint64_t typeSize, std::shared_ptr<Location> location,
3434
bool isPacked, bool isBitField)
3535
: StructOrUnion(std::move(name), std::move(fields), std::move(location)),
36-
typeSize(typeSize), isPacked(isPacked), isBitField(isBitField) {}
36+
typeSize(typeSize), isPacked(isPacked), hasBitField(isBitField) {}
3737

3838
std::shared_ptr<TypeDef> Struct::generateTypeDef() {
3939
if (isRepresentedAsStruct()) {
@@ -74,7 +74,7 @@ std::string Struct::generateHelperClass() const {
7474
}
7575

7676
bool Struct::hasHelperMethods() const {
77-
if (isBitField) {
77+
if (hasBitField) {
7878
return false;
7979
}
8080
if (!isRepresentedAsStruct()) {
@@ -181,7 +181,7 @@ Struct::generateGetterForStructRepresentation(unsigned fieldIndex) const {
181181
}
182182

183183
bool Struct::isRepresentedAsStruct() const {
184-
return fields.size() <= SCALA_NATIVE_MAX_STRUCT_FIELDS && !isBitField;
184+
return fields.size() <= SCALA_NATIVE_MAX_STRUCT_FIELDS && !hasBitField;
185185
}
186186

187187
std::string

bindgen/ir/Struct.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ class Struct : public StructOrUnion,
7878
uint64_t typeSize;
7979
bool isPacked;
8080
/** true if at least one field is bit field */
81-
bool isBitField;
81+
bool hasBitField;
8282

8383
bool isRepresentedAsStruct() const;
8484

0 commit comments

Comments
 (0)