FFI::ClangSourceFFIClangTypesTypeDef

class TypeDef

Represents a typedef type. A typedef provides an alias for another type.

Definitions

def canonical

Get the canonical (underlying) type.

Signature

returns Type

The canonical type that this typedef aliases.

Implementation

def canonical
	Type.create Lib.get_canonical_type(@type), @translation_unit
end

def anonymous?

Check if this typedef aliases an anonymous type.

Signature

returns Boolean

True if the canonical type is an anonymous record.

Implementation

def anonymous?
	self.canonical.kind == :type_record && self.canonical.anonymous?
end