(and 600+ plus of those are from my objdirs, actually). Here it is
broken down by dir:

kats@kgupta-air mozilla-git$ find . -type d -maxdepth 1 -mindepth 1 |
grep -v ".git" | while read dir; do pushd $dir >/dev/null; find .
-name "*.cpp" | xargs grep "^ *a[A-Z]\w* = " | wc -l | xargs echo
$dir; popd >/dev/null; done
./accessible 10
./addon-sdk 0
./b2g 0
./browser 0
./build 0
./caps 5
./chrome 4
./config 0
./db 0
./docshell 19
./dom 1739
./editor 95
./embedding 12
./extensions 20
./gfx 229
./hal 2
./image 33
./intl 55
./ipc 23
./js 1
./layout 1063
./media 15
./memory 0
./mfbt 0
./mobile 0
./modules 6
./mozglue 2
./netwerk 124
./nsprpub 0
./obj-b2g-desktop 320
./obj-host 329
./other-licenses 2
./parser 80
./probes 0
./python 0
./rdf 3
./security 38
./services 0
./startupcache 0
./storage 2
./testing 0
./toolkit 68
./tools 3
./uriloader 43
./view 8
./webapprt 0
./widget 876
./xpcom 177
./xpfe 8
./xulrunner 0

On Tue, Jul 14, 2015 at 10:30 AM, L. David Baron <dba...@dbaron.org> wrote:
> On Tuesday 2015-07-14 10:27 -0400, Kartikaya Gupta wrote:
>> Admittedly not perfect, but as a first-order approximation:
>>
>> kats@kgupta-air mozilla-git$ find . -name "*.cpp" | xargs grep "^
>> *a[A-Z]\w* = " | wc -l
>>     5414
>>
>> That's not a lot considering the size of the codebase.
>
> And a decent portion of those are assigning to out-params that are
> references rather than pointers.
>
> -David
>
> --
> 𝄞   L. David Baron                         http://dbaron.org/   𝄂
> 𝄢   Mozilla                          https://www.mozilla.org/   𝄂
>              Before I built a wall I'd ask to know
>              What I was walling in or walling out,
>              And to whom I was like to give offense.
>                - Robert Frost, Mending Wall (1914)
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to