On Tue, Jul 14, 2015 at 10:10 AM, Tom Tromey <ttro...@mozilla.com> wrote: >>> That assumes that the 'Foo' of aFoo is stable across function >>> boundaries, which is not always the case. > > Ehsan> No, it doesn't. In the scenario above, all you're looking for is when > Ehsan> a value was computed, so you can quickly see an aDuck, aQuack, > Ehsan> aFoopyFoo and determine that the value was passed down from the > Ehsan> caller, until you get to a call site which passes in something that > Ehsan> doesn't start with an 'a'. > > It was mentioned elsewhere in this thread that some code assigns to > arguments. In these cases going up to the point of origination may miss > the spot that actually introduced the value. >
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. _______________________________________________ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform