Python-Clang
Index
- The top-level object which manages some global library state.
Translation Unit
- High-level object encapsulating the AST for a single translation unit. These can be loaded from .ast files or parsed on the fly.
Cursor
- Generic object for representing a node in the AST.
SourceRange, SourceLocation and File
- Objects representing information about the input source.
Cursor
location
kind
CursorKind
type
Type
kind
Variable Name Explaination
spelling
- written character on source file
translation_unit
sourceLocation
file
File
- referenced
- lexical_parent
- hash
- enum_value
- underlying_typedef_type
- canonical
- access specifier
- mangled_name
- displayname
- spelling
- storage_class
- raw_comment
- semantic_parent
- objc_type_encoding
- enum_type
- result_type
TranslationUnit
- is_definition(self):
- is_static_method(self):
- get_definition(self):
- get_usr(self):
- get_all_kinds():
- is_declaration(self):
- is_reference(self):
- is_expression(self):
- is_statement(self):
- is_attribute(self):
- is_invalid(self):
- is_translation_unit(self):
- is_preprocessing(self):
- is_unexposed(self):
Color scheme explain
function
class object
variable
Version : 35
extent
SourceRange
- from_locations(start, end):
- start
- end
- from_result(res, fn, args):
- get_canonical(self):
- is_const_qualified(self):
- is_volatile_qualified(self):
- is_restrict_qualified(self):
- is_function_variadic(self):
- is_pod(self):
- get_pointee(self):
- get_declaration(self):
- get_result(self):
- get_array_element_type(self):
- get_array_size(self):
- get_class_type(self):
- get_align(self):
- get_size(self):
- get_offset(self, fieldname):
- get_ref_qualifier(self):
- element_type(self):
- element_count(self):
- translation_unit(self)
- spelling(self):
TypeKind
- column
- line
- offset
- from_position(tu, file, line, column):
- from_offset(tu, file, offset):
- name
- time
- get_includes(self):
- visitor(fobj, lptr, depth, includes):
- get_file(self, filename):
- get_location(self, filename, position):
- get_extent(self, filename, locations):
- reparse(self, unsaved_files=None, options=0):
- save(self, filename):
- codeComplete(self, path, line, column, unsaved_files=None,
- get_tokens(self, locations=None, extent=None):
- cursor(self):
- spelling(self):
- diagnostics(self):
- name(self):
- spelling(self):