1 .\" Sindex manpage by Alexey Gladkov
5 sindex \- Semantic Indexer for C
12 [\fIoptions\fR] \fIadd\fR [\fIcommand options\fR] [\fI--\fR] [\fIcompiler options\fR] [\fIfiles...\fR]
15 [\fIoptions\fR] \fIrm\fR [\fIcommand options\fR] \fIpattern\fR
18 [\fIoptions\fR] \fIsearch\fR [\fIcommand options\fR] [\fIpattern\fR]
20 .B sindex [\fIoptions\fR] \fIsearch\fR [\fIcommand options\fR] (\fI-e\fR|\fI-l\fR) \fIfilename\fR:\fIlinenr\fR:\fIcolumn\fR
24 sindex is the simple to use cscope-like tool based on sparse/dissect. Unlike
25 cscope it runs after pre-processor and thus it can't index the code filtered out
26 by ifdef's, but otoh it understands how the symbol is used and it can track the
27 usage of struct members.
32 generates or updates semantic index file.
35 removes files from the index by \fIpattern\fR. The \fIpattern\fR is a
40 queries information about symbol by \fIpattern\fR. The \fIpattern\fR is a
46 \fB-D\fR, \fB--database=FILE\fR
47 specify database file (default: ./sindex.sqlite).
49 \fB-v\fR, \fB--verbose\fR
50 show information about what is being done.
52 \fB-h\fR, \fB--help\fR
53 show this text and exit.
57 \fB--include-local-syms\fR
58 include into the index local symbols.
62 \fB-f\fR, \fB--format=STRING\fR
63 specify an output format. Default: '(%m) %f\\t%l\\t%c\\t%C\\t%s' (see
67 \fB-p\fR, \fB--path=PATTERN\fR
68 search symbols only in specified directories.
70 \fB-m\fR, \fB--mode=MODE\fR
71 search only the specified type of access (see
75 \fB-k\fR, \fB--kind=KIND\fR
76 specify a kind of symbol (see
80 \fB-e\fR, \fB--explain\fR
81 Show what happens in the specified file position;
83 \fB-l\fR, \fB--location\fR
84 Show usage of symbols from a specific file position;
86 \fB-v\fR, \fB--verbose\fR
87 show information about what is being done;
89 \fB-h\fR, \fB--help\fR
90 show this text and exit.
95 access mode in human readable form (see
109 the name of the function in which the symbol occurs.
115 source code line. Indexer does not save source code lines. They are read from
116 the file during the search.
130 The \fBMODE\fR is dumped as a 3-letter string. The first letter denotes address
131 of part, 2-nd - access by value, 3-rd - access by pointer. A special value
132 \'\fIdef\fR\' means a symbol definition.
147 http://www.kernel.org/pub/software/devel/sparse/
150 linux-sparse@vger.kernel.org