示例#1
0
文件: type.go 项目: zimmski/go-clang
/**
 * \brief Return the element type of an array type.
 *
 * If a non-array type is passed in, an invalid type is returned.
 */
func (t Type) ArrayElementType() Type {
	o := C.clang_getArrayElementType(t.c)
	return Type{o}
}
示例#2
0
文件: type_gen.go 项目: go-clang/v3.4
/*
	Return the element type of an array type.

	If a non-array type is passed in, an invalid type is returned.
*/
func (t Type) ArrayElementType() Type {
	return Type{C.clang_getArrayElementType(t.c)}
}