mirror of
https://github.com/safishamsi/graphify.git
synced 2026-07-14 19:37:12 +00:00
dbce4532f4
CUDA is a C++ superset, so .cu/.cuh files parse cleanly with tree-sitter-cpp (already a dependency). Two registrations wire it up: - detect.py: add .cu/.cuh to CODE_EXTENSIONS so they're detected and watched (watch.py's _WATCHED_EXTENSIONS derives from CODE_EXTENSIONS). - extract.py: route .cu/.cuh through extract_cpp in _DISPATCH, which also makes collect_files() pick them up (_EXTENSIONS = _DISPATCH.keys()). Adds tests/fixtures/sample.cu (kernel + __device__/host functions + struct + includes) and CUDA cases in test_languages.py covering kernel/ device function extraction, structs, includes, and host call edges. Documents the new extensions in the README extension table and CHANGELOG. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>