llcppsigfetch:right reference
This commit is contained in:
@@ -213,8 +213,10 @@ func (ct *Converter) ProcessType(t clang.Type) ast.Expr {
|
|||||||
switch t.Kind {
|
switch t.Kind {
|
||||||
case clang.TypePointer:
|
case clang.TypePointer:
|
||||||
expr = &ast.PointerType{X: ct.ProcessType(t.PointeeType())}
|
expr = &ast.PointerType{X: ct.ProcessType(t.PointeeType())}
|
||||||
case clang.TypeLValueReference, clang.TypeRValueReference:
|
case clang.TypeLValueReference:
|
||||||
expr = &ast.LvalueRefType{X: ct.ProcessType(t.NonReferenceType())}
|
expr = &ast.LvalueRefType{X: ct.ProcessType(t.NonReferenceType())}
|
||||||
|
case clang.TypeRValueReference:
|
||||||
|
expr = &ast.RvalueRefType{X: ct.ProcessType(t.NonReferenceType())}
|
||||||
case clang.TypeFunctionProto:
|
case clang.TypeFunctionProto:
|
||||||
// function type will only collect return type, params will be collected in ProcessFuncDecl
|
// function type will only collect return type, params will be collected in ProcessFuncDecl
|
||||||
expr = ct.ProcessFunctionType(t)
|
expr = ct.ProcessFunctionType(t)
|
||||||
|
|||||||
@@ -107,7 +107,7 @@ Type: int &:
|
|||||||
}
|
}
|
||||||
Type: int &&:
|
Type: int &&:
|
||||||
{
|
{
|
||||||
"_Type": "LvalueRefType",
|
"_Type": "RvalueRefType",
|
||||||
"X": {
|
"X": {
|
||||||
"_Type": "BuiltinType",
|
"_Type": "BuiltinType",
|
||||||
"Kind": 6,
|
"Kind": 6,
|
||||||
|
|||||||
Reference in New Issue
Block a user