On 26/9/16 14:14, Honza Bambas wrote:
Today I tried to search for an identifier on DXR.  Something that was so
easy with MXR...

I wanted to find usage of a member called "io_pending".  Typing that
string to the DXR search field gives me a number of results that are
definitely not what I'm looking for, like lines containing
ERROR_IO_PENDING.  Using var:io_pending or ref:io_pending returns zero
results, despite the identifier is definitely used in the code base.
So, I tried to look only for assignments to this identifier (a member
variable, actually), so I typed "io_pending = " to the search field.
And what a surprise! I got the same result as for pure "io_pending", so
very far from what I was looking for and expecting to get.


Questions:

- how can I look for a string as always _case sensitive_ and _whole word
only_ ?  MXR was capable of searching for 'identifiers', why doesn't DXR
provide something simple as that as well?

This is only a partial answer, but if you prefix your search with "@" then it'll be case-sensitive, so simply

@io_pending

will get you closer to what you were looking for.

JK


- how can I simply limit search to be performed only in a certain
directory and it's sub-dirs?



Thanks.

-hb-


_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform


_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to