Handbook
Glossary
cxreturn-type>factor ( CXType -- string )
Vocabulary
libclang
Inputs
CXType
an
object
Outputs
string
an
object
Definition
USING:
accessors
combinators
kernel
libclang.ffi
sequences
;
IN:
libclang
:
cxreturn-type>factor
( CXType -- string )
{
{
[
dup
kind>>
CXType_Pointer
=
]
[
clang_getPointeeType
cxreturn-type>factor
"*"
append
]
}
{
[
dup
kind>>
CXType_Elaborated
=
]
[
clang_getCanonicalType
cxreturn-type>factor
]
}
{
[
dup
kind>>
CXType_Record
=
]
[
clang_getTypeDeclaration
cursor-name
]
}
{
[
dup
kind>>
CXType_FunctionProto
=
]
[
drop
"void"
]
}
[
kind>>
cxprimitive-type>factor
]
}
cond
;