aboutsummaryrefslogtreecommitdiff
path: root/source/20-codegen-compiler/CodegenDecl.hpp
diff options
context:
space:
mode:
authorrtk0c <[email protected]>2022-07-07 19:35:40 -0700
committerrtk0c <[email protected]>2022-07-07 19:35:40 -0700
commit8776b737483f579d2d2034bb91efe0794bf67d92 (patch)
treedfefd7f9aa2a5fe00b3089d2435f5e1bc6b9c91e /source/20-codegen-compiler/CodegenDecl.hpp
parenteeed6d84f4324387597be05e6ed1df4b3adfca9c (diff)
Changeset: 81 Replace DeclEnum::underlyingTypeStr with a lookup function from the enumeration value DeclEnum::underlyingType
Diffstat (limited to 'source/20-codegen-compiler/CodegenDecl.hpp')
-rw-r--r--source/20-codegen-compiler/CodegenDecl.hpp3
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;
};