Skip to main content

Module cpp

Module cpp 

Source

Constants§

CALL_QUERY
Tree-sitter query for extracting function calls.
ELEMENT_QUERY
Tree-sitter query for extracting C/C++ elements (functions, classes, and structures).
IMPORT_QUERY
Tree-sitter query for extracting C/C++ preprocessor directives (#include).
REFERENCE_QUERY
Tree-sitter query for extracting type references.

Functions§

extract_function_name
Extract the function name from a C/C++ function_definition node by walking the declarator chain: declarator -> function_declarator -> declarator -> identifier.
extract_inheritance
Extract inheritance information from a class_specifier or struct_specifier node.
find_method_for_receiver
Find method name for a receiver type (class/struct context).