Closed
Bug 454588
Opened 16 years ago
Closed 16 years ago
Want to find all callers of nsIDocument::GetContainer
Categories
(Developer Infrastructure :: Source Code Analysis, defect)
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.
Comment 1•16 years ago
|
||
Put this script in topsrcdir/../findrefs.js
Comment 2•16 years ago
|
||
Put this in objdir/config/myconfig.mk
Comment 3•16 years ago
|
||
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.
Comment 4•16 years ago
|
||
Yeah, it's called DXR: http://zenit.senecac.on.ca/wiki/dxr/
Comment 5•16 years ago
|
||
Here is the most basic class member finder, deals with virtual and non-virtual functions and tries to print out their most exact location
Comment 6•16 years ago
|
||
enjoy
Comment 7•16 years ago
|
||
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
Reporter | ||
Comment 8•16 years ago
|
||
Thanks!
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Updated•6 years ago
|
Product: Core → Firefox Build System
Updated•2 years ago
|
Product: Firefox Build System → Developer Infrastructure
You need to log in
before you can comment on or make changes to this bug.
Description
•