{"id":18157481,"url":"https://github.com/caellian/sourcedepgraph","last_synced_at":"2026-04-13T17:34:04.981Z","repository":{"id":234983080,"uuid":"789856872","full_name":"Caellian/sourcedepgraph","owner":"Caellian","description":"A tool that generates include graph from C/C++ source files.","archived":false,"fork":false,"pushed_at":"2024-04-24T10:36:56.000Z","size":258,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"trunk","last_synced_at":"2025-04-07T02:42:37.648Z","etag":null,"topics":["c","cpp","dependencies","dependency-graph","include-files","includes","source-code-analysis","sourcegraph"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Caellian.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-04-21T18:32:48.000Z","updated_at":"2024-10-01T12:26:08.000Z","dependencies_parsed_at":"2024-12-20T14:47:06.245Z","dependency_job_id":"442f15e4-b8e7-4077-9cf5-db37aeed47d4","html_url":"https://github.com/Caellian/sourcedepgraph","commit_stats":null,"previous_names":["caellian/cdepgraph","caellian/sourcedepgraph"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Caellian/sourcedepgraph","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Caellian%2Fsourcedepgraph","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Caellian%2Fsourcedepgraph/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Caellian%2Fsourcedepgraph/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Caellian%2Fsourcedepgraph/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Caellian","download_url":"https://codeload.github.com/Caellian/sourcedepgraph/tar.gz/refs/heads/trunk","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Caellian%2Fsourcedepgraph/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31762615,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-13T15:25:13.801Z","status":"ssl_error","status_checked_at":"2026-04-13T15:25:09.162Z","response_time":93,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["c","cpp","dependencies","dependency-graph","include-files","includes","source-code-analysis","sourcegraph"],"created_at":"2024-11-02T06:06:24.015Z","updated_at":"2026-04-13T17:34:04.958Z","avatar_url":"https://github.com/Caellian.png","language":"Python","readme":"# cdepgraph\n\nA tool that generates include graph from C/C++ source files.\n\n![example image](./assets/example.png \"Example Image\")\n\nIt's very primitive and won't work for very unconventional projects, but it\nshould in most cases where:\n\n- Local include headers are expected to have appropriate extensions (`.h`,`.hh`,`.hpp`,`.hxx`, etc.)\n  - Headers without extensions are assumed to belong to stdlib\n- Sources are expected to have appropriate extensions (`.c`,`.cc`,`.cpp`,`.cxx`, etc.)\n- Compile flags aren't handled\n- A single program entry point is expected (e.g. `main.cpp`)\n\n## Usage\n\n```\nusage: cdepgraph [-h] [-m MAIN_FILE] [-i INCLUDE_PATHS] [-l] [-e] [-s] [-c] [-o OUTPUT] [-F OUTPUT_FORMAT] SOURCE_DIRECTORY\n\nGenerates include graph from C/C++ source files\n\npositional arguments:\n  SOURCE_DIRECTORY      Source directory containing program entry point\n\noptions:\n  -h, --help            show this help message and exit\n  -m MAIN_FILE, --main-file MAIN_FILE\n                        Main file name and extension; default is any of main.c/cc/cpp/etc.\n  -i INCLUDE_PATHS, --include-paths INCLUDE_PATHS\n                        Semicolon (;) separated list of additional include paths\n  -l, --std-lib         Include standard library includes in produced graph\n  -e, --system          Include system includes in produced graph\n  -s, --strict          Exclude includes which can't be found\n  -c, --check-sources   Check includes of corresponding source files\n  -o OUTPUT, --output OUTPUT\n                        Output file name\n  -F OUTPUT_FORMAT, --output-format OUTPUT_FORMAT\n                        Output file format\n```\n\nRuns well on most Linux distros, running on other platforms will require adjusting `INCLUDE_PATHS` constant for `-l` argument to work.\n\n## Requirements\n\nAll requirements can be found in [`requirements.txt`](./requirements.txt) file.\n\n[PyGraphviz](https://pygraphviz.github.io/documentation/stable/install.html) is required to generate `.dot` files.\n\n## Future Work\n\nIn future, the following improvements could potentially be made:\n\n- Loading previously generated files for visualization. (why?)\n\n## License\n\nThis tool is licensed under [GPLv3](./LICENSE) license.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcaellian%2Fsourcedepgraph","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcaellian%2Fsourcedepgraph","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcaellian%2Fsourcedepgraph/lists"}