aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/codesearch/testdata/source0.c.json
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2026-01-19 15:31:50 +0100
committerDmitry Vyukov <dvyukov@google.com>2026-01-21 13:38:45 +0000
commitd720635adb8965149cd75a3da692d3a0480c36c9 (patch)
treed9896eabd70abd266028624702bc74609ba1c9e4 /pkg/codesearch/testdata/source0.c.json
parent6984f21fcb77bdd034a489c0e552aa1d910e852f (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/source0.c.json')
-rw-r--r--pkg/codesearch/testdata/source0.c.json10
1 files changed, 9 insertions, 1 deletions
diff --git a/pkg/codesearch/testdata/source0.c.json b/pkg/codesearch/testdata/source0.c.json
index d33aa360c..5eea7aba9 100644
--- a/pkg/codesearch/testdata/source0.c.json
+++ b/pkg/codesearch/testdata/source0.c.json
@@ -20,7 +20,15 @@
"start_line": 19,
"end_line": 22
},
- "comment": {}
+ "comment": {},
+ "refs": [
+ {
+ "kind": "calls",
+ "entity_kind": "function",
+ "name": "same_name_in_several_files",
+ "line": 21
+ }
+ ]
},
{
"kind": "function",