gecko-dev/tools/profiler/core
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
..
EHABIStackWalk.cpp
EHABIStackWalk.h
GeckoSampler.cpp Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat 2015-10-18 01:24:48 -04:00
GeckoSampler.h Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat 2015-10-18 01:24:48 -04:00
IntelPowerGadget.cpp
IntelPowerGadget.h
PlatformMacros.h
ProfileBuffer.cpp
ProfileBuffer.h Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat 2015-10-18 01:24:48 -04:00
ProfileEntry.cpp Bug 121027 - Stop manually adding null entries to the profiler's JSON output; r=shu 2015-10-05 14:19:00 +02:00
ProfileEntry.h Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat 2015-10-18 01:24:48 -04:00
ProfileJSONWriter.cpp
ProfileJSONWriter.h
ProfilerBacktrace.cpp
ProfilerMarkers.cpp
SyncProfile.cpp
SyncProfile.h
ThreadInfo.cpp Bug 1122721 - Don't call pthread_get_stackaddr_np during sampling. r=mstange 2015-08-25 18:03:32 -04:00
ThreadInfo.h Bug 1122721 - Don't call pthread_get_stackaddr_np during sampling. r=mstange 2015-08-25 18:03:32 -04:00
ThreadProfile.cpp
ThreadProfile.h Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat 2015-10-18 01:24:48 -04:00
platform-linux.cc Bug 1205074 - Enable EHABI stack walking on Android r=BenWa 2015-09-16 13:23:28 -05:00
platform-macos.cc
platform-win32.cc
platform.cpp Bug 1189881 - Move GeckoJavaSampler::getProfilerTime out of AndroidJNI.cpp. r=jchen 2015-09-17 16:17:26 -05:00
platform.h Bug 1205074 - Enable EHABI stack walking on Android r=BenWa 2015-09-16 13:23:28 -05:00
shared-libraries-linux.cc
shared-libraries-macos.cc
shared-libraries-win32.cc
shim_mac_dump_syms.h
shim_mac_dump_syms.mm bug 543111 - Fix Mac Breakpad host tools to build in Linux cross-compile. r=mento,glandium 2015-10-01 15:04:27 -04:00
v8-support.h