On Fri, 29 Oct 2010, Eric Noulard wrote:

> 2010/10/29 Julia Lawall <[email protected]>:
> >
> > If someone knows of a free indexing tool, then we could try to support
> > that as well.  Actually glimpse is not entirely satisfactory because it
> > considers _ to be a word separator, leading to many false positives in
> > some cases.
> 
> 
> Would cscope do the job?
> http://cscope.sourceforge.net/
> 
> I found cscope very efficient for searching C files, even huge set of them.
> 
> Now you want a "string search" or a "symbol" search?
> cscope can do both but I don't know if its efficient for string.
> 
> If symbol search is enough may be ctags would be a good candidates too;
> http://ctags.sourceforge.net/
> 
> What kind of indexing do you need?

I want an index of identifiers, which could be restricted to function 
names.  Afterwards, I want to be able to run some program on the command 
line with some form of regular expression containing nested ands and ors, 
and to receive a list of relevant files.  I recall that some tools provide 
an API, but no command line interface.  Perhaps such an API could be used 
directly from ocaml, which has the ability to call foreign functions, but 
I haven't looked into it.

julia
_______________________________________________
Cocci mailing list
[email protected]
http://lists.diku.dk/mailman/listinfo/cocci
(Web access from inside DIKUs LAN only)

Reply via email to