logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

semind - Semantic Indexer for C

Add Options

--include-local-syms
              include into the index local symbols.

Common Options

-D, --database=FILE
              specify database file (default: ./semind.sqlite).

       -v, --verbose
              show information about what is being done.

       -h, --help
              show this text and exit.

Description

       semind  is  the simple to use cscope-like tool based on sparse/dissect.  Unlike cscope it runs after pre-
       processor and thus it can't index the code filtered out by ifdef's,  but  otoh  it  understands  how  the
       symbol is used and it can track the usage of struct members.

Format

%m     access mode in human readable form (see MODE below).

       %f     file name.

       %l     line number.

       %c     column number.

       %C     the name of the function in which the symbol occurs.

       %n     symbol name.

       %s     source  code line. Indexer does not save source code lines. They are read from the file during the
              search.

Homepage

       https://sparse.docs.kernel.org

Kind

f      function

       s      strict

       m      struct member

Mailing List

Mode

       The MODE is dumped as a 3-letter string. The first letter denotes address  of  part,  2-nd  -  access  by
       value, 3-rd - access by pointer. A special value 'def' means a symbol definition.

       r      read

       w      write

       m      read and write

Name

       semind - Semantic Indexer for C

See Also

sparse(1)

Subcommands

add    generates or updates semantic index file.

       rm     removes files from the index by pattern. The pattern is a glob(7) wildcard pattern.

       search queries information about symbol by pattern. The pattern is a glob(7) wildcard pattern.

Synopsis

semind [options]
       semind [options] add [commandoptions] [--] [compileroptions] [files...]
       semind [options] rm [commandoptions] patternsemind [options] search [commandoptions] [pattern]
       semind[options] search [commandoptions] (-e|-l) filename:linenr:column

See Also