Closed Bug 454588 Opened 17 years ago Closed 17 years ago

Want to find all callers of nsIDocument::GetContainer

Categories

(Developer Infrastructure :: Source Code Analysis, defect)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: bzbarsky, Unassigned)

References

Details

Attachments

(3 files, 2 obsolete files)

I want to do several analyses, actually: 1) Finding all consumers of nsIDocument::GetContainer or nsIDocument::mDocumentContainer. 2) Finding all consumers of nsIDocument::GetWindow 3) Finding all consumers of nsIDocument::GetInnerWindow 4) Finding all consumers of nsIDocument::GetScopeObject 5) Finding all consumers of nsIDocument::GetScriptHandlingObject 6) Finding all consumers of nsIDocument::GetScriptGlobalObject 7) Finding all consumers of nsIDocument::GetParentDocument()/mParentDocument 8) Finding all consumers of nsPresContext::GetContainer 9) Finding all consumers of nsPresContext::GetLinkHandler There are probably some others. I figure if I can get some boilerplate together for one of these the others should be similar.
Attached file findrefs.js (obsolete) —
Put this script in topsrcdir/../findrefs.js
Attached file findrefs-config.mk
Put this in objdir/config/myconfig.mk
Peanut gallery: Hmm, this sounds interesting. I wonder if a similar functionality (finding callers directly instead of doing a string search) could be added to mxr.
Attached file example treehydra script (obsolete) —
Here is the most basic class member finder, deals with virtual and non-virtual functions and tries to print out their most exact location
Attached file list of maches
enjoy
That's the script i ran using a config.mk to include all of the members mentioned in the bug
Attachment #337908 - Attachment is obsolete: true
Attachment #337923 - Attachment is obsolete: true
Thanks!
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Blocks: 433616
Product: Core → Firefox Build System
Product: Firefox Build System → Developer Infrastructure
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: