Merge pull request #739 from luoliwoshang/llcppg/ast/enumtype

llcppg/ast:enum type
This commit is contained in:
xushiwei
2024-08-22 22:33:07 +08:00
committed by GitHub

View File

@@ -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() {}