A text search tool for large source code with updated pre-indexing?

I support several branches of an average C ++ project (~ 15k files for each branch). Very often I have to search all the project files for a given string or regular expression. I am currently using Total Commander, which has all the functions I want (case sensitive, regular expressions, file name masks), but this tool checks all the files every time, so it takes too much time.

Do you know any text search tool that can pre-index the entire source tree and allow a quick search for patterns? The return of all relevant files is mandatory, a preview of the found environment will be pleasant. Of course, indexes should be updated instantly when something changes.

Searching in Visual Studio is not enough, it only checks the source files (not metadata or user resources).

Is there such a tool? I am using Windows XP.

EDIT : I found a very useful tool, see my own answer

+4
source share
8 answers

I found a very useful tool here: http://code.google.com/p/ndexer/

I recommend it to everyone!

+4
source

cscope is able to index c and, to some extent, C ++ files. I personally use KDE KDE, which is more user friendly than cscope ui.

besides the fact that you may want to take a look at OpenGrok

+2
source

I don’t know for sure (I have no experience), but I would try Eclipse CDT. It indexes all your sources for quick character searches, like the Eclipse JDT (Java Tools).

+1
source

One easy way to get around the problem is to put all the source code on a RAM disk. Thus, speeding up the IO file in this way, you will see a big leap in performance without changing the tool chain.

0
source

Cm. http://aaron.oirt.rutgers.edu/myapp/docs/W1300.testAndDemo and follow the link "search demo" for the demo version of the code search.
This will do what you ask for and is the standard WHIFF demo component. You will add Pygments plugins to pull strings of interest from your binaries (or just read the entire file as “text”) - out of the box, the indexer will ignore files that Pyigs does not recognize. There is a slight hack to make it "eat everything" - let me know if you want to know more.

The installation and command line interfaces for searching at are described below. http://aaron.oirt.rutgers.edu/myapp/docs/W1300_1000.search .

0
source

You can try to find the Google desktop either as Lucene or clucene (lucene ported to C ++) as a general-purpose indexing tool.

0
source

I know that you do not want webapp to be mandatory, but try Open Grok .

0
source

The Windows Indexing Service is displayed according to all your criteria.

0
source

All Articles