>> What features do you most use in MXR and DXR?
> 
> One feature I'd like to see in DXR is the ability to click on a header file 
> shown in a #include and have it be opened.
> 
> For example, if I search for ErrorResult, I see
> 
> #include "mozilla/ErrorResult.h"
> 
> I'd like to be able to click on the #include and have it be opened.

You, my friend, are in luck. It so happens that I reimplemented that feature 
last week. It used to be based on some post-build heuristics and only worked 
some of the time. Now it sits in the clang compiler plugin and knows exactly 
what clang knows, so it works all the time. In fact, the only thing keeping it 
from looking like it works is that we stink at building markup (unbalanced 
tags! ick!) due to a error-prone and labyrinthian interval-overlap-resolution 
algorithm, which I'm rewriting as we speak. If all goes well, you should see 
the results in tomorrow's build, and you shouldn't have any more trouble with 
includes.

> It would also be really nice to have the source and header files which are 
> generated from .idl and .ipdl files be included in the index.

What I'm rewriting is part of the build process, and that's the process I'd 
have to refactor to make your request a reality. A question for you: would it 
be better, from your point of view, to index the generated files or to 
magically turn up the IDL line "attribute short foo" when you search for 
"function:GetFoo" or "function:SetFoo"? (I'm not sure both are feasible; I just 
want to get an early read.)

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

Reply via email to