From 0bd39ed0356ca744fcaadc451292fb90bb35ba9e Mon Sep 17 00:00:00 2001 From: xushiwei Date: Tue, 6 Aug 2024 15:09:39 +0800 Subject: [PATCH] TypedefDecl --- chore/llcppg/ast/ast.go | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/chore/llcppg/ast/ast.go b/chore/llcppg/ast/ast.go index 971ff3df..6b58a97c 100644 --- a/chore/llcppg/ast/ast.go +++ b/chore/llcppg/ast/ast.go @@ -203,17 +203,20 @@ type Location struct { } type DeclBase struct { + Doc *CommentGroup // associated documentation; or nil Loc *Location Parent Expr // namespace or class } +// ------------------------------------------------ + +// typedef Type Name; type TypedefDecl struct { DeclBase - Type Expr - Names []*Ident + Type Expr + Name *Ident } -// typedef Type Name1, Name2, ...; func (*TypedefDecl) declNode() {} // ------------------------------------------------