llcppsigfetch:right reference

This commit is contained in:
luoliwoshang
2024-08-29 11:31:42 +08:00
parent 021ddefb10
commit 2842a109da
2 changed files with 4 additions and 2 deletions

View File

@@ -213,8 +213,10 @@ 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:
case clang.TypeLValueReference:
expr = &ast.LvalueRefType{X: ct.ProcessType(t.NonReferenceType())}
case clang.TypeRValueReference:
expr = &ast.RvalueRefType{X: ct.ProcessType(t.NonReferenceType())}
case clang.TypeFunctionProto:
// function type will only collect return type, params will be collected in ProcessFuncDecl
expr = ct.ProcessFunctionType(t)

View File

@@ -107,7 +107,7 @@ Type: int &:
}
Type: int &&:
{
"_Type": "LvalueRefType",
"_Type": "RvalueRefType",
"X": {
"_Type": "BuiltinType",
"Kind": 6,