From d720635adb8965149cd75a3da692d3a0480c36c9 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Mon, 19 Jan 2026 15:31:50 +0100 Subject: 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 --- pkg/codesearch/testdata/source0.c.json | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'pkg/codesearch/testdata/source0.c.json') 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", -- cgit mrf-deployment