Merge pull request #734 from luoliwoshang/llcppg/ast/func

llcppg/ast:func decl
This commit is contained in:
xushiwei
2024-08-22 05:40:05 +08:00
committed by GitHub

View File

@@ -43,6 +43,16 @@ type PPD interface { // preprocessing directive
ppdNode() ppdNode()
} }
// =============================================================================
type AccessSpecifier uint
const (
Invalid AccessSpecifier = iota
Public
Protected
Private
)
// ============================================================================= // =============================================================================
// Expressions (Types are also expressions) // Expressions (Types are also expressions)
@@ -284,6 +294,16 @@ type FuncDecl struct {
DeclBase DeclBase
Name *Ident Name *Ident
Type *FuncType Type *FuncType
IsInline bool
IsStatic bool
// Class method specific fields
IsConst bool // const member function
IsExplicit bool // explicit constructor
IsConstructor bool
IsDestructor bool
IsVirtual bool
IsOverride bool
} }
func (*FuncDecl) declNode() {} func (*FuncDecl) declNode() {}