diff options
Diffstat (limited to 'source/20-codegen-compiler/CodegenDecl.hpp')
-rw-r--r-- | source/20-codegen-compiler/CodegenDecl.hpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/20-codegen-compiler/CodegenDecl.hpp b/source/20-codegen-compiler/CodegenDecl.hpp index 00fc18e..d99f79c 100644 --- a/source/20-codegen-compiler/CodegenDecl.hpp +++ b/source/20-codegen-compiler/CodegenDecl.hpp @@ -88,7 +88,6 @@ struct DeclEnum { std::string_view fullname; std::vector<DeclEnumElement> elements; EnumUnderlyingType underlyingType; - std::string underlyingTypeStr; // Start with invalid value, calculate on demand mutable EnumValuePattern pattern = EVP_COUNT; @@ -102,6 +101,8 @@ struct DeclEnum { // NOTE: see GenerateForEnum() for the exact heuristics bool generateExcludeUseHeuristics : 1 = false; + std::string_view GetUnderlyingTypeName() const; + EnumValuePattern CalcPattern() const; EnumValuePattern GetPattern() const; }; |