Merge pull request #772 from luoliwoshang/castdump/typedef
castdump:use UnderlyingType instead CanonicalType in typedef
This commit is contained in:
@@ -61,7 +61,9 @@ func printType(t clang.Type, data *Data) {
|
|||||||
case clang.TypeIncompleteArray, clang.TypeVariableArray, clang.TypeDependentSizedArray, clang.TypeConstantArray:
|
case clang.TypeIncompleteArray, clang.TypeVariableArray, clang.TypeDependentSizedArray, clang.TypeConstantArray:
|
||||||
printType(t.ArrayElementType(), data)
|
printType(t.ArrayElementType(), data)
|
||||||
case clang.TypeTypedef:
|
case clang.TypeTypedef:
|
||||||
printType(t.CanonicalType(), data)
|
printType(t.TypeDeclaration().TypedefDeclUnderlyingType(), data)
|
||||||
|
case clang.TypeElaborated:
|
||||||
|
printType(t.NamedType(), data)
|
||||||
case clang.TypeFunctionProto:
|
case clang.TypeFunctionProto:
|
||||||
printType(t.ResultType(), data)
|
printType(t.ResultType(), data)
|
||||||
for i := 0; i < int(t.NumArgTypes()); i++ {
|
for i := 0; i < int(t.NumArgTypes()); i++ {
|
||||||
|
|||||||
Reference in New Issue
Block a user