Class: Clangc::Cursor

Inherits:
Object
  • Object
show all
Defined in:
ext/clangc/clangc.c,
lib/clangc.rb

Instance Method Summary (collapse)

Instance Method Details

- (Object) argument

- (Object) arguments

:call-seq: Clangc::Cursor#arguments -> Array

Return an array that contains all the cursors for the arguments of the function that is related to the current cursor. If the current cursor is not a function, it returns an empty array.



96
97
98
99
100
101
102
103
104
105
# File 'lib/clangc.rb', line 96

def arguments
  num = num_arguments
  cursors = []
  return cursors if num == -1

  for i in 0..(num - 1) do
    cursors << argument(i)
  end
  cursors
end

- (Object) availability

- (Object) cxx_access_specifier

- (Object) decl_objectC_type_encoding

- (Object) enum_const_decl_unsigned_value

- (Object) enum_const_decl_value

- (Object) enum_decl_integer_type

- (Object) extent

- (Object) field_decl_bit_width

- (Object) hash

- (Object) included_file

- (Object) is_anonymous

- (Object) is_attribute

- (Object) is_bit_field

- (Object) is_declaration

- (Object) is_equal

- (Object) is_expression

- (Object) is_invalid

- (Object) is_null

- (Object) is_preprocessing

- (Object) is_reference

- (Object) is_statement

- (Object) is_translation_unit

- (Object) is_virtual_base

- (Object) kind

- (Object) language

- (Object) lexical_parent

- (Object) linkage

- (Object) location

- (Object) num_arguments

- (Object) num_overloaded_decls

- (Object) num_template_arguments

- (Object) offset_of_field

- (Object) overloaded_decl

- (Object) overloaded_decls

:call-seq: Clangc::Cursor#overloaded_decls -> Array

Return an array that contains all the cursors for the overloaded declarations that are related to the current cursor. If the current cursor is not an overloaded declaration, it returns an empty array.



115
116
117
118
119
120
121
122
123
124
# File 'lib/clangc.rb', line 115

def overloaded_decls
  num = num_overloaded_decls
  cursors = []
  return cursors if num == 0

  for i in 0..(num - 1) do
    cursors << overloaded_decl(i)
  end
  cursors
end

- (Object) result_type

- (Object) semantic_parent

- (Object) spelling

- (Object) storage_class

- (Object) type

- (Object) typedef_decl_underlying_type