aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/codesearch/testdata/source0.c.json
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2026-01-21 12:21:38 +0100
committerDmitry Vyukov <dvyukov@google.com>2026-01-22 11:23:54 +0000
commit8e4581b34c9584a49bc595d65c48167b9ecbe34f (patch)
tree107cd943f49b86f1a8e4639c03c73bf80642ba57 /pkg/codesearch/testdata/source0.c.json
parent2367ed1e24f80dca97acc30309650f248a2df14b (diff)
tools/clang/codesearch: index struct references
Update #6469
Diffstat (limited to 'pkg/codesearch/testdata/source0.c.json')
-rw-r--r--pkg/codesearch/testdata/source0.c.json37
1 files changed, 37 insertions, 0 deletions
diff --git a/pkg/codesearch/testdata/source0.c.json b/pkg/codesearch/testdata/source0.c.json
index ba6b41751..1732d7c97 100644
--- a/pkg/codesearch/testdata/source0.c.json
+++ b/pkg/codesearch/testdata/source0.c.json
@@ -23,6 +23,43 @@
},
{
"kind": "function",
+ "name": "func_accepting_a_struct",
+ "type": "int (struct some_struct *)",
+ "body": {
+ "file": "source0.c",
+ "start_line": 29,
+ "end_line": 33
+ },
+ "comment": {},
+ "refs": [
+ {
+ "kind": "uses",
+ "entity_kind": "struct",
+ "name": "some_struct",
+ "line": 29
+ },
+ {
+ "kind": "uses",
+ "entity_kind": "typedef",
+ "name": "some_struct_t",
+ "line": 31
+ },
+ {
+ "kind": "uses",
+ "entity_kind": "struct",
+ "name": "some_struct",
+ "line": 31
+ },
+ {
+ "kind": "uses",
+ "entity_kind": "union",
+ "name": "some_union",
+ "line": 32
+ }
+ ]
+ },
+ {
+ "kind": "function",
"name": "func_in_header",
"type": "int ()",
"is_static": true,