diff options
| author | Tamas Koczka <poprdi@google.com> | 2026-01-28 14:34:43 +0000 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2026-01-28 16:30:57 +0000 |
| commit | 0ce7d86d6a53b38ed75045173da33b277415254d (patch) | |
| tree | 7adfdaafad8f402b3d1983426d7817c637664424 /pkg/codesearch/testdata/query-struct-layout-some-struct-offset | |
| parent | bb732b9882d4a11b56b97fcf41ce9625d82171c9 (diff) | |
pkg/codesearch: expose struct layout in codesearch
- Extract struct field offsets and sizes in the C++ codesearch indexer.
- Add 'fields' to the JSON definition output.
- Update pkg/codesearch to parse and expose the new field information.
- Add 'struct-layout' command to syz-codesearch for debugging.
- Add 'codesearch-struct-layout' tool to pkg/aflow/tool/codesearcher/
to allow LLM agents to query struct memory layout and map byte offsets to fields.
- Support pointer marshaling for optional JSON values (e.g. *uint)
Diffstat (limited to 'pkg/codesearch/testdata/query-struct-layout-some-struct-offset')
| -rw-r--r-- | pkg/codesearch/testdata/query-struct-layout-some-struct-offset | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pkg/codesearch/testdata/query-struct-layout-some-struct-offset b/pkg/codesearch/testdata/query-struct-layout-some-struct-offset new file mode 100644 index 000000000..8aa337e87 --- /dev/null +++ b/pkg/codesearch/testdata/query-struct-layout-some-struct-offset @@ -0,0 +1,4 @@ +struct-layout testdata/source0.h some_struct 0 + +struct some_struct has 1 fields: +[0 - 32] x |
