mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-05 08:35:26 +00:00
01583602a9
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 |
||
---|---|---|
.. | ||
java | ||
javasrc | ||
jArray.h | ||
moz.build | ||
nsAHtml5TreeBuilderState.h | ||
nsAHtml5TreeOpSink.h | ||
nsHtml5ArrayCopy.h | ||
nsHtml5Atom.cpp | ||
nsHtml5Atom.h | ||
nsHtml5AtomList.h | ||
nsHtml5Atoms.cpp | ||
nsHtml5Atoms.h | ||
nsHtml5AtomTable.cpp | ||
nsHtml5AtomTable.h | ||
nsHtml5AttributeName.cpp | ||
nsHtml5AttributeName.h | ||
nsHtml5ByteReadable.h | ||
nsHtml5DependentUTF16Buffer.cpp | ||
nsHtml5DependentUTF16Buffer.h | ||
nsHtml5DocumentBuilder.cpp | ||
nsHtml5DocumentBuilder.h | ||
nsHtml5DocumentMode.h | ||
nsHtml5ElementName.cpp | ||
nsHtml5ElementName.h | ||
nsHtml5Highlighter.cpp | ||
nsHtml5Highlighter.h | ||
nsHtml5HtmlAttributes.cpp | ||
nsHtml5HtmlAttributes.h | ||
nsHtml5Macros.h | ||
nsHtml5MetaScanner.cpp | ||
nsHtml5MetaScanner.h | ||
nsHtml5MetaScannerCppSupplement.h | ||
nsHtml5MetaScannerHSupplement.h | ||
nsHtml5Module.cpp | ||
nsHtml5Module.h | ||
nsHtml5NamedCharacters.cpp | ||
nsHtml5NamedCharacters.h | ||
nsHtml5NamedCharactersAccel.cpp | ||
nsHtml5NamedCharactersAccel.h | ||
nsHtml5NamedCharactersInclude.h | ||
nsHtml5OplessBuilder.cpp | ||
nsHtml5OplessBuilder.h | ||
nsHtml5OwningUTF16Buffer.cpp | ||
nsHtml5OwningUTF16Buffer.h | ||
nsHtml5Parser.cpp | ||
nsHtml5Parser.h | ||
nsHtml5PlainTextUtils.cpp | ||
nsHtml5PlainTextUtils.h | ||
nsHtml5Portability.cpp | ||
nsHtml5Portability.h | ||
nsHtml5RefPtr.h | ||
nsHtml5ReleasableAttributeName.cpp | ||
nsHtml5ReleasableAttributeName.h | ||
nsHtml5ReleasableElementName.cpp | ||
nsHtml5ReleasableElementName.h | ||
nsHtml5Speculation.cpp | ||
nsHtml5Speculation.h | ||
nsHtml5SpeculativeLoad.cpp | ||
nsHtml5SpeculativeLoad.h | ||
nsHtml5StackNode.cpp | ||
nsHtml5StackNode.h | ||
nsHtml5StateSnapshot.cpp | ||
nsHtml5StateSnapshot.h | ||
nsHtml5StreamListener.cpp | ||
nsHtml5StreamListener.h | ||
nsHtml5StreamParser.cpp | ||
nsHtml5StreamParser.h | ||
nsHtml5StringParser.cpp | ||
nsHtml5StringParser.h | ||
nsHtml5SVGLoadDispatcher.cpp | ||
nsHtml5SVGLoadDispatcher.h | ||
nsHtml5Tokenizer.cpp | ||
nsHtml5Tokenizer.h | ||
nsHtml5TokenizerCppSupplement.h | ||
nsHtml5TokenizerHSupplement.h | ||
nsHtml5TokenizerLoopPolicies.h | ||
nsHtml5TreeBuilder.cpp | ||
nsHtml5TreeBuilder.h | ||
nsHtml5TreeBuilderCppSupplement.h | ||
nsHtml5TreeBuilderHSupplement.h | ||
nsHtml5TreeOperation.cpp | ||
nsHtml5TreeOperation.h | ||
nsHtml5TreeOpExecutor.cpp | ||
nsHtml5TreeOpExecutor.h | ||
nsHtml5TreeOpStage.cpp | ||
nsHtml5TreeOpStage.h | ||
nsHtml5UTF16Buffer.cpp | ||
nsHtml5UTF16Buffer.h | ||
nsHtml5UTF16BufferCppSupplement.h | ||
nsHtml5UTF16BufferHSupplement.h | ||
nsHtml5ViewSourceUtils.cpp | ||
nsHtml5ViewSourceUtils.h | ||
nsIContentHandle.h | ||
nsIParserUtils.idl | ||
nsIScriptableUnescapeHTML.idl | ||
nsParserUtils.cpp | ||
nsParserUtils.h |