gecko-dev/tools
Nathan Froyd 01583602a9 Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat
The bulk of this commit was generated with a script, executed at the top
level of a typical source code checkout.  The only non-machine-generated
part was modifying MFBT's moz.build to reflect the new naming.

CLOSED TREE makes big refactorings like this a piece of cake.

 # The main substitution.
find . -name '*.cpp' -o -name '*.cc' -o -name '*.h' -o -name '*.mm' -o -name '*.idl'| \
    xargs perl -p -i -e '
 s/nsRefPtr\.h/RefPtr\.h/g; # handle includes
 s/nsRefPtr ?</RefPtr</g;   # handle declarations and variables
'

 # Handle a special friend declaration in gfx/layers/AtomicRefCountedWithFinalize.h.
perl -p -i -e 's/::nsRefPtr;/::RefPtr;/' gfx/layers/AtomicRefCountedWithFinalize.h

 # Handle nsRefPtr.h itself, a couple places that define constructors
 # from nsRefPtr, and code generators specially.  We do this here, rather
 # than indiscriminantly s/nsRefPtr/RefPtr/, because that would rename
 # things like nsRefPtrHashtable.
perl -p -i -e 's/nsRefPtr/RefPtr/g' \
     mfbt/nsRefPtr.h \
     xpcom/glue/nsCOMPtr.h \
     xpcom/base/OwningNonNull.h \
     ipc/ipdl/ipdl/lower.py \
     ipc/ipdl/ipdl/builtin.py \
     dom/bindings/Codegen.py \
     python/lldbutils/lldbutils/utils.py

 # In our indiscriminate substitution above, we renamed
 # nsRefPtrGetterAddRefs, the class behind getter_AddRefs.  Fix that up.
find . -name '*.cpp' -o -name '*.h' -o -name '*.idl' | \
    xargs perl -p -i -e 's/nsRefPtrGetterAddRefs/RefPtrGetterAddRefs/g'

if [ -d .git ]; then
    git mv mfbt/nsRefPtr.h mfbt/RefPtr.h
else
    hg mv mfbt/nsRefPtr.h mfbt/RefPtr.h
fi

--HG--
rename : mfbt/nsRefPtr.h => mfbt/RefPtr.h
2015-10-18 01:24:48 -04:00
..
bloatview Bug 1089441 - Move bloattable.pl and bloatdiff.pl into tools/bloatview/. r=dbaron. 2014-11-13 14:02:11 -08:00
check-moz-style Bug 875605 - Add tests to check-moz-style. r=ms2ger 2013-05-26 09:42:31 -04:00
docs Bug 1212427 - Reference extra Python paths in Sphinx config; r=mshal 2015-10-09 13:03:52 -07:00
jprof Make split-profile run jprof in the directory with the jprof-log. No bug. 2015-04-20 23:10:40 -07:00
leak-gauge Bug 1146875 - Fix the leak-gauge.html broken and add a encoding declaration. r=dbaron 2015-03-24 06:23:00 -04:00
memory Bug 1089441 - Move bloattable.pl and bloatdiff.pl into tools/bloatview/. r=dbaron. 2014-11-13 14:02:11 -08:00
memory-profiler Bug 1123237 - Part 11. Don't use STL in memory-profiler. r=BenWa,cervantes 2015-09-16 10:31:13 +08:00
mercurial Bug 1200461 - Prompt for Bugzilla API Key instead of password; r=smacleod 2015-09-15 15:57:40 -07:00
power Bug 1214924 - Add "WindowServer" and "kernel" processes to |mach power|'s output. r=BenWa. 2015-10-16 14:01:22 +11:00
profiler Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat 2015-10-18 01:24:48 -04:00
quitter Bug 1155816 - part 1 - move NO_JS_MANIFEST to moz.build; r=mshal 2015-04-17 14:50:12 -04:00
rb Bug 1190466 - tools/rb/find-leakers.pl re-written in Python r=mccr8 2015-08-20 14:18:20 -07:00
rewriting Bug 1203477 - Moved Mozilla specific files to glue directory, and third party files to hyphen directory. Adjusted moz.build files. r=glandium 2015-09-16 21:01:00 +02:00
update-packaging Backed out changeset e1833c2684f0 (bug 1079858) for windows xpcshell failures CLOSED TREE 2015-09-08 12:58:03 -07:00
mach_commands.py Bug 1209772 - 'mozregression was installed. please re-run your command.' when running ./mach mozregression. r=ahal 2015-10-05 22:08:35 +02:00