Closed Bug 184338 Opened 23 years ago Closed 6 years ago

lxr Ident search not finding all occurences of identifier

Categories

(Webtools Graveyard :: MXR, defect)

x86
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: nate, Unassigned)

References

()

Details

User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2b) Gecko/20021029 Phoenix/0.4 Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2b) Gecko/20021029 Phoenix/0.4 Search by identifier for "NS_CheckContentLoadPolicy": http://lxr.mozilla.org/seamonkey/ident?i=NS_CheckContentLoadPolicy Referenced in six files. Search by string for "NS_CheckContentLoadPolicy": http://lxr.mozilla.org/seamonkey/search?string=NS_CheckContentLoadPolicy Finds occurences in seven files. The first two occurences in docshell/base/nsDocShell.cpp are not found when searching by identifier. But "NS_CheckContentLoadPolicy" is highlighted and acts like an identifier from within that file. Reproducible: Always Steps to Reproduce:
strange. it wouldn't be so bad if it ignored the comment entry and hit the other, or if it ignored the entire file, but it knows about the file http://lxr.mozilla.org/seamonkey/ident?i=SameOrSubdomainOfTarget and it knows about the identifier... note that the file hasn't changed in about a week either...
Status: UNCONFIRMED → NEW
Ever confirmed: true
This is a 'true bill'. A search for the identifier <URL: http://lxr.mozilla.org/seamonkey/ident?i=p2cstr > comes back with nothing, but the comparable text search <URL: http://lxr.mozilla.org/seamonkey/search?string=p2cstr > picked up what I was looking for. This may have been a C pre-processing issue . It could be that a more focussed parser is required, and this is hardly within Mozilla's purview. <URL: http://lxr.linux.no/ >
heikki: this is not a dupe of that older bug, i can reproduce these... ben: our lxr has its roots in the other lxr, but has significantly diverged from it and is maintained (as best as I can) independently. note that in your choice, there is *no* definition of that function, so i'd say that your problem is probably different. brodie: that problem is actually different, the declaration of nsIStandardURL is in an idl file, which lxr doesn't understand. there's supposed to be bug/patch that attempts to deal w/ interfaces, but clearly it doesn't work (because http://landfill.mozilla.org/mxr-test/seamonkey/ident?i=nsIStandardURL doesn't show anything :( ...)
reassigning endico's bugs to default owner
Assignee: endico → chase
Mass reassign of open bugs for chase@mozilla.org to build@mozilla-org.bugs.
Assignee: chase → build
QA Contact: timeless → lxr
Reassigning all LXR bugs assigned to build@mozilla-org.bugs to the default LXR owner (sorry Bear!) We aren't actively working on these (if that's wrong, please reassign to yourself/a real person).
Assignee: build → bear
QA Contact: lxr → timeless
Version: Trunk → other
QA Contact: timeless → lxr
Assignee: bear → nobody

mxr is gone, mass closing.
https://searchfox.org/ is a much better alternative.

Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → WONTFIX
Product: Webtools → Webtools Graveyard
You need to log in before you can comment on or make changes to this bug.