diff --git a/chore/llcppg/ast/ast.go b/chore/llcppg/ast/ast.go index 807a8267..07019086 100644 --- a/chore/llcppg/ast/ast.go +++ b/chore/llcppg/ast/ast.go @@ -285,11 +285,17 @@ type EnumItem struct { func (*EnumItem) exprNode() {} +type EnumType struct { + Items []*EnumItem +} + +func (*EnumType) exprNode() {} + // enum Name { Item1, Item2, ... }; type EnumTypeDecl struct { DeclBase - Name *Ident - Items []*EnumItem + Name *Ident + Type *EnumType } func (*EnumTypeDecl) declNode() {}