![]() |
Scarab
2.8.1
Project 8 C++ Utility Library
|

Static Public Member Functions | |
| def | from_location (tu, location) |
| def | from_result (res, fn, args) |
| def | from_cursor_result (res, fn, args) |
Public Attributes | |
| kind | |
Static Private Attributes | |
| list | _fields_ = [("_kind_id", c_int), ("xdata", c_int), ("data", c_void_p * 3)] |
The Cursor class represents a reference to an element within the AST. It acts as a kind of iterator.
| def access_specifier | ( | self | ) |
| def brief_comment | ( | self | ) |
| def canonical | ( | self | ) |
Return the canonical Cursor corresponding to this Cursor. The canonical cursor is the cursor which is representative for the underlying entity. For example, if you have multiple forward declarations for the same class, the canonical cursor for the forward declarations will be identical.
| def displayname | ( | self | ) |
| def enum_type | ( | self | ) |
| def enum_value | ( | self | ) |
| def extent | ( | self | ) |
| def get_arguments | ( | self | ) |
| def get_bitfield_width | ( | self | ) |
| def get_children | ( | self | ) |
| def get_definition | ( | self | ) |
| def get_field_offsetof | ( | self | ) |
| def get_num_template_arguments | ( | self | ) |
| def get_template_argument_kind | ( | self, | |
| num | |||
| ) |
| def get_template_argument_type | ( | self, | |
| num | |||
| ) |
| def get_template_argument_unsigned_value | ( | self, | |
| num | |||
| ) |
| def get_template_argument_value | ( | self, | |
| num | |||
| ) |
| def get_tokens | ( | self | ) |
| def get_usr | ( | self | ) |
Return the Unified Symbol Resultion (USR) for the entity referenced by the given cursor (or None). A Unified Symbol Resolution (USR) is a string that identifies a particular entity (function, class, variable, etc.) within a program. USRs can be compared across translation units to determine, e.g., when references in one translation refer to an entity defined in another translation unit.
| def is_anonymous | ( | self | ) |
| def is_bitfield | ( | self | ) |
| def is_const_method | ( | self | ) |
| def is_converting_constructor | ( | self | ) |
| def is_copy_constructor | ( | self | ) |
| def is_default_constructor | ( | self | ) |
| def is_default_method | ( | self | ) |
| def is_definition | ( | self | ) |
| def is_move_constructor | ( | self | ) |
| def is_mutable_field | ( | self | ) |
| def is_pure_virtual_method | ( | self | ) |
| def is_static_method | ( | self | ) |
| def is_virtual_method | ( | self | ) |
| def lexical_parent | ( | self | ) |
| def location | ( | self | ) |
| def mangled_name | ( | self | ) |
| def objc_type_encoding | ( | self | ) |
| def raw_comment | ( | self | ) |
| def referenced | ( | self | ) |
| def result_type | ( | self | ) |
| def semantic_parent | ( | self | ) |
| def spelling | ( | self | ) |
| def storage_class | ( | self | ) |
| def translation_unit | ( | self | ) |
| def type | ( | self | ) |
| def underlying_typedef_type | ( | self | ) |
| def walk_preorder | ( | self | ) |
|
staticprivate |
1.8.13