diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2026-01-19 15:31:50 +0100 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2026-01-21 13:38:45 +0000 |
| commit | d720635adb8965149cd75a3da692d3a0480c36c9 (patch) | |
| tree | d9896eabd70abd266028624702bc74609ba1c9e4 /pkg/codesearch/testdata/mm/refs.c.json | |
| parent | 6984f21fcb77bdd034a489c0e552aa1d910e852f (diff) | |
pkg/codesearch: support searching for references
Extend codesearch clang tool to export info about function references
(calls, takes-address-of).
Add pkg/codesearch command find-references.
Export find-references in pkg/aflow/tools/codesearcher to LLMs.
Update #6469
Diffstat (limited to 'pkg/codesearch/testdata/mm/refs.c.json')
| -rw-r--r-- | pkg/codesearch/testdata/mm/refs.c.json | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/pkg/codesearch/testdata/mm/refs.c.json b/pkg/codesearch/testdata/mm/refs.c.json new file mode 100644 index 000000000..09ac87f98 --- /dev/null +++ b/pkg/codesearch/testdata/mm/refs.c.json @@ -0,0 +1,23 @@ +{ + "definitions": [ + { + "kind": "function", + "name": "ref_in_mm", + "type": "void ()", + "body": { + "file": "mm/refs.c", + "start_line": 3, + "end_line": 6 + }, + "comment": {}, + "refs": [ + { + "kind": "calls", + "entity_kind": "function", + "name": "refs2", + "line": 5 + } + ] + } + ] +}
\ No newline at end of file |
