aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/codesearch/testdata/query-find-references-context-limit
blob: 5d230c28a3786dae2352e856971736a26b3e0876 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
find-references refs.c refs2 "" 10000 10

refs2 has 4 references:

function long_func_with_ref calls it at refs.c:29
  23:	void long_func_with_ref()
  24:	{
  25:		refs0();
  26:		refs1();
  27:		refs0();
  28:		refs1();
  29:		refs2(refs1, refs0());
  30:		refs0();
  31:		refs1();
  32:		refs0();
  33:		refs1();
  34:	}


function ref_in_mm calls it at mm/refs.c:5
   3:	void ref_in_mm()
   4:	{
   5:		refs2();
   6:	}


function refs3 calls it at refs.c:19
  17:	void refs3()
  18:	{
  19:		refs2(refs1, refs0());
  20:		(void)refs2;
  21:	}


function refs3 takes-address-of it at refs.c:20
  17:	void refs3()
  18:	{
  19:		refs2(refs1, refs0());
  20:		(void)refs2;
  21:	}