Jean-Marc Desperrier wrote:
type:nsMedia shows me things like nsMediaDecoder::Statistics, and
type:Statistics doesn't show it, that's not what I expected.

I know understand better than type:'string' gives me :
- all types starting with 'string'
- all types defined inside a type starting with 'string' whatever their name is

so 'type:nsMedia' return me both the type 'nsMediaDecoder' :
   class nsMediaDecoder : public nsIObserver {
and the type 'nsMediaDecoder::Statistics' here.
   class nsMediaDecoder : public nsIObserver {
        struct Statistics {

And I can *not* access the 'Statistics' type here with a 'type:Statistics' request. I have to know it's embedded inside 'nsMediaDecoder'. 'type:nsMediaDecoder::Statistics' finds it.
As well as 'type:nsMediaDecoder::'

member:Statistics does not give me what I expected either, it shows the
parameters that appears in functions call  ?

OK, that is corrected, call parameter are not anymore included inside this result.

So 'member:string' will give me all function and variable starting with string that are members of some type (whatever that type is named).
So 'member:mPlaybackRate' finds
    double nsMediaDecoder::Statistics::mPlaybackRate;

It would be good to be able to show all member functions and member variables of type x, just like 'type:x::' will show all types defined inside x.

'member:string' will *not* find types that are embedded inside another type : 'member:Statistics' will not find 'nsMediaDecoder::Statistics', no more than 'type:Statistics', I *have* to know that Statistics is defined inside nsMediaDecoder.

Why does
http://dxr.proximity.on.ca/dxr/mozilla-central/xpcom/base/nsTraceRefcntImpl.h.html#58/type
tell me that the argument "StatisticsType type" is
"nsLookAndFeelIntPref::type" ?

It's broken currently, I get "Um, this isn't right..."

It's not the only one that's broken, it seems to be a quite wide problem with the current version.

_______________________________________________
dev-static-analysis mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-static-analysis

Reply via email to