Expand description
Conversions from Clang USR strings to display‑friendly identifiers.
A USR (Unified Symbol Resolution) uniquely identifies a declaration in the Clang AST. Its structure encodes namespaces, classes, function signatures and template parameters. This module extracts the last, human‑significant segment of the USR and strips template suffix clutter.
Additionally, the module provides cleanup_node_names which normalises
both name and usr fields of every node in a CodePropertyGraph.
This is applied once after graph construction or cache loading.
Functions§
- cleanup_
node_ names - Walks all graph nodes and replaces USR‑encoded names with their human‑readable equivalents.
- readable_
name - Returns a readable name from a raw identifier that may be a Clang USR.