Skip to content

Commit

Permalink
patterns: Make sure enum bitfield entries don't display as type "bits"
Browse files Browse the repository at this point in the history
  • Loading branch information
WerWolv committed Jul 3, 2024
1 parent 374229f commit 6830e01
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/include/pl/patterns/pattern_bitfield.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,14 @@ namespace pl::ptrn {
public:
using PatternBitfieldField::PatternBitfieldField;

[[nodiscard]] std::string getFormattedName() const override {
return "enum " + Pattern::getTypeName();
}

[[nodiscard]] std::string getTypeName() const override {
return Pattern::getTypeName();
}

void setEnumValues(const std::vector<PatternEnum::EnumValue> &enumValues) {
this->m_enumValues = enumValues;
}
Expand Down

0 comments on commit 6830e01

Please sign in to comment.