Semantic C code indexing and query tool

Semantic C code indexing and query tool

Daniel Shahaf d.s at daniel.shahaf.name
Mon May 14 10:43:30 IDT 2012


Daniel Shahaf wrote on Mon, May 14, 2012 at 10:35:36 +0300:
> Baruch Siach wrote on Mon, May 14, 2012 at 07:34:56 +0300:
> > Hi linux-il,
> > 
> > I'm looking for a tool that can do semantic search is a body of C code.  
> > Example query: "give me all references to field y in struct x defined in file 
> > z.h". I would prefer an open source, command line driven tool. C++ support is 
> > an advantage. Does such a tool exist?
> > 
> 
> exuberant ctags.  Support for C/C++ struct members is enabled by default
> (see `--list-kinds` output).

Well, not exactly.  I'm not sure ctags can find all the _references_ to
a given struct member -- but I'd not be surprised if cscope (already
mentioned) can do that.



More information about the Linux-il mailing list