gecko-dev/xpcom/ds
Gabriele Svelto 5dc21d568c Bug 1600545 - Remove useless inclusions of header files generated from IDL files in modules/, netwerk/, parser/, security/, startupcache/, storage/, toolkit/, tools/, uriloader/, widget/, xpcom/ and xpfe/ r=Ehsan
The inclusions were removed with the following very crude script and the
resulting breakage was fixed up by hand. The manual fixups did either
revert the changes done by the script, replace a generic header with a more
specific one or replace a header with a forward declaration.

find . -name "*.idl" | grep -v web-platform | grep -v third_party | while read path; do
    interfaces=$(grep "^\(class\|interface\).*:.*" "$path" | cut -d' ' -f2)
    if [ -n "$interfaces" ]; then
        if [[ "$interfaces" == *$'\n'* ]]; then
          regexp="\("
          for i in $interfaces; do regexp="$regexp$i\|"; done
          regexp="${regexp%%\\\|}\)"
        else
          regexp="$interfaces"
        fi
        interface=$(basename "$path")
        rg -l "#include.*${interface%%.idl}.h" . | while read path2; do
            hits=$(grep -v "#include.*${interface%%.idl}.h" "$path2" | grep -c "$regexp" )
            if [ $hits -eq 0 ]; then
                echo "Removing ${interface} from ${path2}"
                grep -v "#include.*${interface%%.idl}.h" "$path2" > "$path2".tmp
                mv -f "$path2".tmp "$path2"
            fi
        done
    fi
done

Differential Revision: https://phabricator.services.mozilla.com/D55444

--HG--
extra : moz-landing-system : lando
2019-12-06 09:17:57 +00:00
..
tools Bug 1586683 - Remove flat strings from JSAPI. r=jwalden,bzbarsky 2019-10-14 09:32:07 +00:00
ArenaAllocator.h Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format 2018-11-30 11:46:48 +01:00
ArenaAllocatorExtensions.h Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format 2018-11-30 11:46:48 +01:00
ArrayIterator.h Bug 1578649 - Make ArrayIterator<Element&, ArrayType> convertible to ArrayIterator<const Element&, ArrayType>. r=froydnj 2019-09-04 18:48:05 +00:00
Atom.py Bug 1499170 - Add an atom bit to know whether we're ascii lowercase. r=njn 2018-11-13 12:47:40 +00:00
AtomArray.h Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format 2018-11-30 11:46:48 +01:00
components.conf Bug 1539029 - pt 1 - give RDD its own process selector. r=froydnj 2019-04-09 21:13:16 +00:00
Dafsa.cpp Bug 1534878 - xpcom: Make some global functions static. r=erahm 2019-02-24 17:35:59 -08:00
Dafsa.h Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format 2018-11-30 11:46:48 +01:00
HTMLAtoms.py Bug 903372 - Remove xml:base from parser. r=hsivonen 2018-12-13 15:47:01 +00:00
IncrementalTokenizer.cpp Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format 2018-11-30 11:46:48 +01:00
IncrementalTokenizer.h Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format 2018-11-30 11:46:48 +01:00
moz.build Bug 1586358 - Replace existing instances of GENERATED_FILES with references to the GeneratedFile template r=firefox-build-system-reviewers,mshal 2019-10-07 21:15:19 +00:00
MruCache.h Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format 2018-11-30 11:46:48 +01:00
nsArray.cpp Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format 2018-11-30 11:46:48 +01:00
nsArray.h Bug 1600545 - Remove useless inclusions of header files generated from IDL files in modules/, netwerk/, parser/, security/, startupcache/, storage/, toolkit/, tools/, uriloader/, widget/, xpcom/ and xpfe/ r=Ehsan 2019-12-06 09:17:57 +00:00
nsArrayEnumerator.cpp Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format 2018-11-30 11:46:48 +01:00
nsArrayEnumerator.h Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format 2018-11-30 11:46:48 +01:00
nsArrayUtils.cpp Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format 2018-11-30 11:46:48 +01:00
nsArrayUtils.h Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format 2018-11-30 11:46:48 +01:00
nsAtom.h Bug 1421938 - Make the nsAtomCString constructor accept a const nsAtom pointer. r=emilio 2019-07-08 23:56:14 +00:00
nsAtomTable.cpp Bug 1453456 - Remove nsCRT::IsAscii(null-terminated string) in favor of mozilla::IsAsciiNullTerminated. r=froydnj 2019-02-25 12:22:24 -08:00
nsAtomTable.h Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format 2018-11-30 11:46:48 +01:00
nsBaseHashtable.h Bug 1591132 - Make it easy to switch on and off these assertions in different build configurations. r=froydnj 2019-10-28 23:27:30 +00:00
nsCharSeparatedTokenizer.h Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format 2018-11-30 11:46:48 +01:00
nsCheapSets.h Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format 2018-11-30 11:46:48 +01:00
nsClassHashtable.h Bug 1575479 - Encapsulate mBaseHashtableET::mData. r=froydnj 2019-09-10 13:51:09 +00:00
nsCOMArray.cpp Bug 1587176 - Fix UBSAN complaints about nsCOMArray. r=erahm 2019-11-05 00:14:10 +00:00
nsCOMArray.h Bug 1587176 - Fix UBSAN complaints about nsCOMArray. r=erahm 2019-11-05 00:14:10 +00:00
nsCRT.cpp Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format 2018-11-30 11:46:48 +01:00
nsCRT.h Bug 1575495: part 4) Add AddLineBreak to CurrentLineContent. r=hsivonen 2019-08-23 14:00:50 +00:00
nsDataHashtable.h Bug 1575479 - Encapsulate mBaseHashtableET::mData. r=froydnj 2019-09-10 13:51:09 +00:00
nsDeque.cpp Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format 2018-11-30 11:46:48 +01:00
nsDeque.h Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format 2018-11-30 11:46:48 +01:00
nsEnumeratorUtils.cpp Bug 1122740 - remove useless null checks after allocating memory with |new| r=erahm 2019-06-04 04:43:11 +00:00
nsEnumeratorUtils.h
nsExpirationTracker.h Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format 2018-11-30 11:46:48 +01:00
nsGkAtoms.cpp Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format 2018-11-30 11:46:48 +01:00
nsGkAtoms.h Bug 1519636 - Reformat recent changes to the Google coding style r=Ehsan 2019-07-06 08:18:28 +00:00
nsHashKeys.h Bug 1539716. Remove nsIHashable. r=froydnj 2019-03-28 13:07:05 +00:00
nsHashPropertyBag.cpp Bug 1596665 - P2. Add ability to copy all property bag contents to another. r=mattwoodrow 2019-11-26 01:49:28 +00:00
nsHashPropertyBag.h Bug 1596665 - P2. Add ability to copy all property bag contents to another. r=mattwoodrow 2019-11-26 01:49:28 +00:00
nsIArray.idl Bug 1477432 - Part 10: Stop using nsIJSID in nsIArray for optional IID parameters, r=kmag 2018-11-16 17:27:46 -05:00
nsIArrayExtensions.idl Bug 1484496: Part 4b - Add intrinsic type information to most nsSimpleEnumerators. r=froydnj 2018-08-18 21:06:32 -07:00
nsIINIParser.idl
nsIMutableArray.idl Bug 1552795 - Remove all trailing whitespaces in idl files r=Ehsan 2019-05-22 22:37:14 +00:00
nsINIParserImpl.cpp Bug 1122740 - remove useless null checks after allocating memory with |new| r=erahm 2019-06-04 04:43:11 +00:00
nsINIParserImpl.h Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format 2018-11-30 11:46:48 +01:00
nsInterfaceHashtable.h Bug 1575479 - Encapsulate mBaseHashtableET::mData. r=froydnj 2019-09-10 13:51:09 +00:00
nsIObserver.idl Bug 1552795 - Remove all trailing whitespaces in idl files r=Ehsan 2019-05-22 22:37:14 +00:00
nsIObserverService.idl Bug 1552795 - Remove all trailing whitespaces in idl files r=Ehsan 2019-05-22 22:37:14 +00:00
nsIPersistentProperties2.idl Bug 1491574 - Part 2: Remove the XPCOM registration for nsPersistentProperties; r=froydnj 2018-09-18 00:58:52 -04:00
nsIPersistentProperties.h Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format 2018-11-30 11:46:48 +01:00
nsIProperties.idl Bug 1552795 - Remove all trailing whitespaces in idl files r=Ehsan 2019-05-22 22:37:14 +00:00
nsIProperty.idl
nsIPropertyBag2.idl Bug 1552795 - Remove all trailing whitespaces in idl files r=Ehsan 2019-05-22 22:37:14 +00:00
nsIPropertyBag.idl
nsISerializable.idl
nsISimpleEnumerator.idl Bug 1484496: Part 4b - Add intrinsic type information to most nsSimpleEnumerators. r=froydnj 2018-08-18 21:06:32 -07:00
nsIStringEnumerator.idl Bug 1486147: Part 1 - Add JS iterator support to nsIStringEnumerator. r=mccr8 2018-08-24 16:21:33 -07:00
nsISupportsIterators.idl
nsISupportsPrimitives.idl Bug 1545851, part 2 - Mark nsISupportsPrimitive and subinterfaces as builtinclass. r=froydnj 2019-04-22 14:35:18 +00:00
nsIVariant.idl Bug 1550860 - Mark implicit builtinclass interfaces explicitly. r=nika 2019-05-13 19:51:49 +00:00
nsIWindowsRegKey.idl Bug 1552795 - Remove all trailing whitespaces in idl files r=Ehsan 2019-05-22 22:37:14 +00:00
nsIWritablePropertyBag2.idl
nsIWritablePropertyBag.idl
nsJSThingHashtable.h Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format 2018-11-30 11:46:48 +01:00
nsMathUtils.h Bug 1535226 - Remove uses of XP_WIN32 in Gecko. r=glandium 2019-03-21 01:28:50 +00:00
nsObserverList.cpp Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format 2018-11-30 11:46:48 +01:00
nsObserverList.h Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format 2018-11-30 11:46:48 +01:00
nsObserverService.cpp Bug 1600545 - Remove useless inclusions of header files generated from IDL files in modules/, netwerk/, parser/, security/, startupcache/, storage/, toolkit/, tools/, uriloader/, widget/, xpcom/ and xpfe/ r=Ehsan 2019-12-06 09:17:57 +00:00
nsObserverService.h Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format 2018-11-30 11:46:48 +01:00
nsPersistentProperties.cpp Bug 1551647. Stop using [array] in nsIProperties. r=froydnj 2019-05-14 18:46:13 +00:00
nsPersistentProperties.h Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format 2018-11-30 11:46:48 +01:00
nsPointerHashKeys.h Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format 2018-11-30 11:46:48 +01:00
nsProperties.cpp Bug 1551647. Stop using [array] in nsIProperties. r=froydnj 2019-05-14 18:46:13 +00:00
nsProperties.h Bug 1515376 - remove aggregation support from nsProperties; r=mccr8 2018-12-19 13:16:43 -05:00
nsQuickSort.cpp Bug 1547143 - Format the tree: Be prescriptive with the pointer style (left) r=Ehsan 2019-05-01 08:47:10 +00:00
nsQuickSort.h Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format 2018-11-30 11:46:48 +01:00
nsRefPtrHashtable.h Bug 1575479 - Encapsulate mBaseHashtableET::mData. r=froydnj 2019-09-10 13:51:09 +00:00
nsSimpleEnumerator.cpp Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format 2018-11-30 11:46:48 +01:00
nsSimpleEnumerator.h Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format 2018-11-30 11:46:48 +01:00
nsStaticAtomUtils.h Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format 2018-11-30 11:46:48 +01:00
nsStaticNameTable.cpp Bug 1591132 - Make it easy to switch on and off these assertions in different build configurations. r=froydnj 2019-10-28 23:27:30 +00:00
nsStaticNameTable.h Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format 2018-11-30 11:46:48 +01:00
nsStringEnumerator.cpp Bug 1122740 - remove useless null checks after allocating memory with |new| r=erahm 2019-06-04 04:43:11 +00:00
nsStringEnumerator.h Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format 2018-11-30 11:46:48 +01:00
nsSupportsPrimitives.cpp Bug 1591823 - Part 1: Remove the unused nsIComponentRegistrar.enumerateCIDs() method; r=froydnj 2019-10-28 13:26:17 +00:00
nsSupportsPrimitives.h Bug 1591823 - Part 1: Remove the unused nsIComponentRegistrar.enumerateCIDs() method; r=froydnj 2019-10-28 13:26:17 +00:00
nsTArray-inl.h Bug 1521000 - Part 2: Adjust our clang-format rules to include spaces after the hash for nested preprocessor directives r=sylvestre 2019-01-18 10:16:18 +01:00
nsTArray.cpp Bug 1520418 - Ensure the empty array header has enough alignment to avoid creating unaligned pointers. r=froydnj 2019-01-16 15:51:49 +01:00
nsTArray.h Bug 1595750 - Add MakeBackInserter function to create a back-inserting output iterator for nsTArray. r=froydnj 2019-11-13 09:06:42 +00:00
nsTArrayForwardDeclare.h Bug 1289211 - Remove InfallibleTArray alias r=erahm 2019-07-10 03:34:19 +00:00
nsTHashtable.h Bug 1519636 - Reformat recent changes to the Google coding style r=Ehsan 2019-11-26 14:35:02 +00:00
nsTObserverArray.cpp Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format 2018-11-30 11:46:48 +01:00
nsTObserverArray.h Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format 2018-11-30 11:46:48 +01:00
nsTPriorityQueue.h Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format 2018-11-30 11:46:48 +01:00
nsVariant.cpp Bug 1122740 - remove useless null checks after allocating memory with |new| r=erahm 2019-06-04 04:43:11 +00:00
nsVariant.h Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format 2018-11-30 11:46:48 +01:00
nsWhitespaceTokenizer.h Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format 2018-11-30 11:46:48 +01:00
nsWindowsRegKey.cpp Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format 2018-11-30 11:46:48 +01:00
nsWindowsRegKey.h Bug 1521000 - Part 2: Adjust our clang-format rules to include spaces after the hash for nested preprocessor directives r=sylvestre 2019-01-18 10:16:18 +01:00
Observer.h Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format 2018-11-30 11:46:48 +01:00
PerfectHash.h Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format 2018-11-30 11:46:48 +01:00
PLDHashTable.cpp Bug 1519636 - Reformat recent changes to the Google coding style r=Ehsan 2019-11-26 14:35:02 +00:00
PLDHashTable.h Bug 1519636 - Reformat recent changes to the Google coding style r=Ehsan 2019-11-26 14:35:02 +00:00
SimpleEnumerator.h Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format 2018-11-30 11:46:48 +01:00
StaticAtoms.py Bug 1597120 - Remove platform support for XUL mousethrough attribute. r=emilio 2019-11-22 13:15:28 +00:00
StickyTimeDuration.h Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format 2018-11-30 11:46:48 +01:00
Tokenizer.cpp Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format 2018-11-30 11:46:48 +01:00
Tokenizer.h Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format 2018-11-30 11:46:48 +01:00