Class: Clangc::Type
- Inherits:
-
Object
- Object
- Clangc::Type
- Defined in:
- ext/clangc/clangc.c,
lib/clangc.rb
Instance Method Summary (collapse)
- - (Object) arg_type
-
- (Object) arg_types
:call-seq: Clangc::Type#arg_types -> Array.
- - (Object) array_element_type
- - (Object) array_size
- - (Object) calling_conv
- - (Object) canonical_type
- - (Object) element_type
- - (Object) is_const_qualified
- - (Object) is_equal
- - (Object) is_pod
- - (Object) is_restrict_qualified
- - (Object) is_volatile_qualified
- - (Object) kind
- - (Object) num_arg_types
- - (Object) num_elements
- - (Object) pointee_type
- - (Object) result_type
- - (Object) spelling
Instance Method Details
- (Object) arg_type
- (Object) arg_types
:call-seq: Clangc::Type#arg_types -> Array
Return an array that contains all the types for the argument of the function that is related to the current type. If the current type is not a function, it returns an empty array.
75 76 77 78 79 80 81 82 83 84 |
# File 'lib/clangc.rb', line 75 def arg_types num = num_arg_types return [] if num == -1 types = [] for i in 0..(num - 1) do types << arg_type(i) end types end |