I think it is a matter of failing to parse/index all of the code; for example, var:mError works for me as I think you would expect. If I find a definition of "io_pending":
https://dxr.mozilla.org/mozilla-central/source/nsprpub/pr/include/private/primpl.h#1608 I notice that it isn't recognized as a variable; just a few lines above however, syspoll_count is fine: https://dxr.mozilla.org/mozilla-central/source/nsprpub/pr/include/private/primpl.h#1600 It may be related to preprocessor. I see the unrecognized symbols often (always?) are placed inside an #ifdef where the #define is not found / highlighted in blue. On Mon, Sep 26, 2016 at 9:14 AM, Honza Bambas <hbam...@mozilla.com> 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? > > - 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