From e3fefdebe1ba60fa967820cc0234e06064a6c0a4 Mon Sep 17 00:00:00 2001 From: luoliwoshang <2643523683@qq.com> Date: Tue, 20 Aug 2024 12:02:12 +0800 Subject: [PATCH] llcppg/ast:value reference --- chore/llcppg/ast/ast.go | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/chore/llcppg/ast/ast.go b/chore/llcppg/ast/ast.go index 9b18f3fc..c8ff0bdc 100644 --- a/chore/llcppg/ast/ast.go +++ b/chore/llcppg/ast/ast.go @@ -159,11 +159,18 @@ func (*PointerType) exprNode() {} // ------------------------------------------------ // X& -type ReferenceType struct { +type LvalueRefType struct { X Expr } -func (*ReferenceType) exprNode() {} +func (*LvalueRefType) exprNode() {} + +// X&& +type RvalueRefType struct { + X Expr +} + +func (*RvalueRefType) exprNode() {} // ------------------------------------------------