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/query-find-references-no-context | |
| 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/query-find-references-no-context')
| -rw-r--r-- | pkg/codesearch/testdata/query-find-references-no-context | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/pkg/codesearch/testdata/query-find-references-no-context b/pkg/codesearch/testdata/query-find-references-no-context new file mode 100644 index 000000000..dc38cb875 --- /dev/null +++ b/pkg/codesearch/testdata/query-find-references-no-context @@ -0,0 +1,16 @@ +find-references refs.c refs2 "" 0 10 + +refs2 has 4 references: + +function long_func_with_ref calls it at refs.c:29 + + +function ref_in_mm calls it at mm/refs.c:5 + + +function refs3 calls it at refs.c:19 + + +function refs3 takes-address-of it at refs.c:20 + + |
