Remove now-unnecessary enum keyword (#1338)

C++ does not need it
This commit is contained in:
Sylvie
2024-03-08 19:40:41 -05:00
committed by GitHub
parent 1b97297d63
commit 53537cf9af
27 changed files with 95 additions and 127 deletions

View File

@@ -38,7 +38,7 @@ extern bool disablePadding;
} while (0)
struct FileStackNode {
enum FileStackNodeType type;
FileStackNodeType type;
std::variant<
std::monostate, // Default constructed; `.type` and `.data` must be set manually
std::vector<uint32_t>, // NODE_REPT

View File

@@ -25,7 +25,7 @@ struct Patch {
Section const *pcSection;
uint32_t pcSectionID;
uint32_t pcOffset;
enum PatchType type;
PatchType type;
std::vector<uint8_t> rpnExpression;
};
@@ -34,8 +34,8 @@ struct Section {
std::string name;
uint16_t size;
uint16_t offset;
enum SectionType type;
enum SectionModifier modifier;
SectionType type;
SectionModifier modifier;
bool isAddressFixed;
// This `struct`'s address in ROM.
// Importantly for fragments, this does not include `offset`!

View File

@@ -25,7 +25,7 @@ struct Label {
struct Symbol {
// Info contained in the object files
std::string name;
enum ExportLevel type;
ExportLevel type;
char const *objFileName;
FileStackNode const *src;
int32_t lineNo;