Functions | |
| list[Path] | source_files (Path repo_root) |
| Discover source inputs whose dirty bytes determine cross-reference freshness. | |
| str | digest_files (Path repo_root, list[Path] paths) |
| Hash path names and current file bytes deterministically. | |
| str | file_digest (Path path) |
| Hash one configuration file. | |
| str | repository_path (Path repo_root, str raw) |
| Normalize a Doxygen location to a repository-relative POSIX path when possible. | |
| dict[str, dict] | parse_xml (Path repo_root, Path xml_dir) |
| Extract definition locations and Doxygen reference edges from XML output. | |
| dict[str, dict] | distill_symbols (dict[str, dict] symbols) |
| Keep production definitions and remap header references to source definitions. | |
| str | command_output (list[str] command, Path cwd) |
| Return the first line from an orientation-only metadata command. | |
| None | generate (Path repo_root, Path xml_dir, Path output) |
| Generate the stamped JSON cross-reference index. | |
| argparse.Namespace | parse_args (list[str] argv) |
| Parse generator command-line arguments. | |
| int | main (list[str]|None argv=None) |
| Generate the optional index and report actionable failures. | |
Variables | |
| int | SCHEMA_VERSION = 1 |
| tuple | SOURCE_ROOTS = ("include", "src", "picurv_cli", "generators") |
| dict | SOURCE_SUFFIXES = {".c", ".cc", ".cpp", ".h", ".hpp", ".py", ".sh", ".flow"} |
Distill Doxygen XML references into an optional, bounded review index.
| list[Path] generate_xref_index.source_files | ( | Path | repo_root | ) |
Discover source inputs whose dirty bytes determine cross-reference freshness.
| [in] | repo_root | Repository root. |
Definition at line 20 of file generate_xref_index.py.
| str generate_xref_index.digest_files | ( | Path | repo_root, |
| list[Path] | paths | ||
| ) |
Hash path names and current file bytes deterministically.
| [in] | repo_root | Repository root. |
| [in] | paths | Repository-relative paths to hash. |
Definition at line 40 of file generate_xref_index.py.
| str generate_xref_index.file_digest | ( | Path | path | ) |
Hash one configuration file.
| [in] | path | File to hash. |
Definition at line 57 of file generate_xref_index.py.
| str generate_xref_index.repository_path | ( | Path | repo_root, |
| str | raw | ||
| ) |
Normalize a Doxygen location to a repository-relative POSIX path when possible.
| [in] | repo_root | Repository root. |
| [in] | raw | Location value emitted by Doxygen. |
Definition at line 67 of file generate_xref_index.py.
| dict[str, dict] generate_xref_index.parse_xml | ( | Path | repo_root, |
| Path | xml_dir | ||
| ) |
Extract definition locations and Doxygen reference edges from XML output.
| [in] | repo_root | Repository root used to normalize locations. |
| [in] | xml_dir | Doxygen XML directory. |
Definition at line 84 of file generate_xref_index.py.
| dict[str, dict] generate_xref_index.distill_symbols | ( | dict[str, dict] | symbols | ) |
Keep production definitions and remap header references to source definitions.
| [in] | symbols | Raw Doxygen member records. |
Definition at line 125 of file generate_xref_index.py.
| str generate_xref_index.command_output | ( | list[str] | command, |
| Path | cwd | ||
| ) |
Return the first line from an orientation-only metadata command.
| [in] | command | Executable and arguments. |
| [in] | cwd | Working directory. |
unavailable when the command fails. Definition at line 181 of file generate_xref_index.py.
| None generate_xref_index.generate | ( | Path | repo_root, |
| Path | xml_dir, | ||
| Path | output | ||
| ) |
Generate the stamped JSON cross-reference index.
| [in] | repo_root | Repository root. |
| [in] | xml_dir | Doxygen XML directory. |
| [in] | output | Destination JSON path. |
| RuntimeError | when XML or required configuration is unavailable. |
Definition at line 195 of file generate_xref_index.py.
| argparse.Namespace generate_xref_index.parse_args | ( | list[str] | argv | ) |
Parse generator command-line arguments.
| [in] | argv | Arguments excluding the executable name. |
Definition at line 226 of file generate_xref_index.py.
| int generate_xref_index.main | ( | list[str] | None | argv = None | ) |
Generate the optional index and report actionable failures.
| [in] | argv | Optional arguments excluding the executable name. |
Definition at line 240 of file generate_xref_index.py.
| int generate_xref_index.SCHEMA_VERSION = 1 |
Definition at line 15 of file generate_xref_index.py.
| tuple generate_xref_index.SOURCE_ROOTS = ("include", "src", "picurv_cli", "generators") |
Definition at line 16 of file generate_xref_index.py.
| dict generate_xref_index.SOURCE_SUFFIXES = {".c", ".cc", ".cpp", ".h", ".hpp", ".py", ".sh", ".flow"} |
Definition at line 17 of file generate_xref_index.py.