Function visit_node

Function Documentation

CXChildVisitResult anonymous_namespace{parsing.cpp}::visit_node (CXCursor cursor, CXCursor parent, CXClientData clientData)

A recursive function to traverse the AST and process relevant cursors.

This function determines if a Clang cursor satisfies any of the known conditions (function definition, function declaration, struct declaration, struct definition) and processes it accordingly.

Parameters:
  • cursor – The current Clang cursor.

  • parent – The parent cursor (unused).

  • clientData – Pointer to a DependencyGraph object used to accumulate information.

Returns:

CXChildVisit_Recurse to continue traversing child cursors.