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. _______________________________________________ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il