R – Does an IFilter Exist for Indexing Source Code Files

ifilterindexingsearch

Anybody know of an IFilter that can index source code files beyond what the "Plain Text" filter can provide, with possibly a custom "Property Set" specific to programming?

For example, I have 835MB in 41,000 files and 8,200 folders in my "Code Library" folder. I would like to perform searches such as "select distinct attributes on properties" or "select class exceptions" or "select classes with nested private classes". Preferrably, the IFilter can distinguish between various languages, so I can perform a query like "select class exceptions in VB.NET" or "select 'resume next' in VBScript".

Other Examples

  1. "select all enum from
    folder('microsoft source code') in
    namespace 'system.io'"

Update

Best Answer

You may want to take a look at a static code analysis tool like NDepend that offers a feature called the Code Query Language http://www.ndepend.com/Features.aspx#CQL.

Related Topic