Smart research based on symbols is great, but sometime you *do* need
instead that basic full text search, so don't forget to include it.
It's there now, at least what MXR provides, I duplicate it. MXR uses
Glimpse to do a full-text search index. For example, if you want to
search for "media":
http://scotland.proximity.on.ca/dxr//search.cgi?tree=mozilla-central&string=media
This is identical to MXR with the exception that I'm not currently
having it index all mozilla-central files (i.e., currently, I only index
files that the static analysis tools can analyze, though I plan to fix
that so DXR >= MXR).
Being able to search inside the symbol list would be really useful too,
when you know what symbol you want to search but can't remember exactly
how it's typed, and have that search not limited to the start of
identifiers.
I do this now, but it could be improved for the case you describe.
You'll notice in the search above, that in addition to giving full-text
results, along the right I also give types, files, and members (I'd give
macros too, if any existed). For types/members/macros, I look for your
search term at the start of the name.
You can also do things like:
http://scotland.proximity.on.ca/dxr/search.cgi?tree=mozilla-central&type=media
If you can help me figure out a natural way to query for things in the
middle of names, I'll add that. Doing type:*media* seems ugly to me,
but maybe that's the way.
Dave
_______________________________________________
dev-static-analysis mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-static-analysis