llcppsigfetch:lvalue & rvalue refer

This commit is contained in:
luoliwoshang
2024-08-22 12:15:06 +08:00
parent 0a8e25b405
commit a4f850c0c6
4 changed files with 99 additions and 0 deletions

View File

@@ -237,6 +237,8 @@ func (ct *Converter) ProcessType(t clang.Type) ast.Expr {
switch t.Kind {
case clang.TypePointer:
expr = &ast.PointerType{X: ct.ProcessType(t.PointeeType())}
case clang.TypeLValueReference, clang.TypeRValueReference:
expr = &ast.LvalueRefType{X: ct.ProcessType(t.NonReferenceType())}
case clang.TypeFunctionProto:
// function type will only collect return type, params will be collected in ProcessFunc
ret := ct.ProcessType(t.ResultType())