gecko-dev/dom/bindings
Emilio Cobos Álvarez 256c124f94 Bug 1609996 - Reorder some includes affected by the previous patches. r=froydnj
This was done by:

This was done by applying:

```
diff --git a/python/mozbuild/mozbuild/code-analysis/mach_commands.py b/python/mozbuild/mozbuild/code-analysis/mach_commands.py
index 789affde7bbf..fe33c4c7d4d1 100644
--- a/python/mozbuild/mozbuild/code-analysis/mach_commands.py
+++ b/python/mozbuild/mozbuild/code-analysis/mach_commands.py
@@ -2007,7 +2007,7 @@ class StaticAnalysis(MachCommandBase):
         from subprocess import Popen, PIPE, check_output, CalledProcessError

         diff_process = Popen(self._get_clang_format_diff_command(commit), stdout=PIPE)
-        args = [sys.executable, clang_format_diff, "-p1", "-binary=%s" % clang_format]
+        args = [sys.executable, clang_format_diff, "-p1", "-binary=%s" % clang_format, '-sort-includes']

         if not output_file:
             args.append("-i")
```

Then running `./mach clang-format -c <commit-hash>`

Then undoing that patch.

Then running check_spidermonkey_style.py --fixup

Then running `./mach clang-format`

I had to fix four things:

 * I needed to move <utility> back down in GuardObjects.h because I was hitting
   obscure problems with our system include wrappers like this:

0:03.94 /usr/include/stdlib.h:550:14: error: exception specification in declaration does not match previous declaration
0:03.94 extern void *realloc (void *__ptr, size_t __size)
0:03.94              ^
0:03.94 /home/emilio/src/moz/gecko-2/obj-debug/dist/include/malloc_decls.h:53:1: note: previous declaration is here
0:03.94 MALLOC_DECL(realloc, void*, void*, size_t)
0:03.94 ^
0:03.94 /home/emilio/src/moz/gecko-2/obj-debug/dist/include/mozilla/mozalloc.h:22:32: note: expanded from macro 'MALLOC_DECL'
0:03.94     MOZ_MEMORY_API return_type name##_impl(__VA_ARGS__);
0:03.94                                ^
0:03.94 <scratch space>:178:1: note: expanded from here
0:03.94 realloc_impl
0:03.94 ^
0:03.94 /home/emilio/src/moz/gecko-2/obj-debug/dist/include/mozmemory_wrap.h:142:41: note: expanded from macro 'realloc_impl'
0:03.94 #define realloc_impl mozmem_malloc_impl(realloc)

   Which I really didn't feel like digging into.

 * I had to restore the order of TrustOverrideUtils.h and related files in nss
   because the .inc files depend on TrustOverrideUtils.h being included earlier.

 * I had to add a missing include to RollingNumber.h

 * Also had to partially restore include order in JsepSessionImpl.cpp to avoid
   some -WError issues due to some static inline functions being defined in a
   header but not used in the rest of the compilation unit.

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

--HG--
extra : moz-landing-system : lando
2020-01-20 16:19:48 +00:00
..
crashtests Bug 1591481 part 2. Don't force copying when external strings are passed to Web IDL bindings. r=mccr8 2019-10-30 15:52:22 +00:00
docs Bug 1578173 part 7. Remove remaining uses of [Constructor] from binding tests. r=edgar 2019-09-12 18:39:26 +00:00
mozwebidlcodegen Bug 1603262 - mozbuild/makeutil.py and mozbuild/test_makeutil.py support python3 r=firefox-build-system-reviewers,mshal 2019-12-13 20:49:13 +00:00
parser Bug 1449861 - Add UTF8String to the WebIDL parser. r=bzbarsky 2020-01-04 10:35:21 +00:00
test Bug 1565170 - Disable toSource/uneval in non-chrome code. r=jwalden,bzbarsky 2020-01-09 11:48:58 +00:00
AtomList.h
BindingDeclarations.h Bug 1519636 - Reformat recent changes to the Google coding style r=Ehsan 2020-01-09 21:50:11 +00:00
BindingIPCUtils.h Bug 1432856 - Extended focus methods in Window.webidl, Client.webidl and Element.webidl to pass CallerType. r=smaug 2020-01-16 14:38:40 +00:00
BindingUtils.cpp Bug 1606958 - Use FakeString for UTF8String. r=bzbarsky,froydnj 2020-01-07 21:37:12 +00:00
BindingUtils.h Bug 1607595 - Manual fixups, and remove mozilla::IsBaseOf. r=froydnj 2020-01-08 14:52:18 +00:00
Bindings.conf Bug 1583863 - Part 3: WindowContext using SyncedContext, r=peterv 2020-01-20 14:58:52 +00:00
CallbackFunction.h Bug 1561887 part 2. Fix cycle-collection skipping of JSEventHandler to work correctly. r=smaug 2019-07-09 17:04:59 +00:00
CallbackInterface.cpp Bug 1586683 - Remove flat strings from JSAPI. r=jwalden,bzbarsky 2019-10-14 09:32:07 +00:00
CallbackInterface.h
CallbackObject.cpp Bug 1600545 - Remove useless inclusions of header files generated from IDL files in dom/ r=Ehsan 2019-12-06 09:24:56 +00:00
CallbackObject.h Bug 1515214 - Add CallbackObject::GetDescription and TimeoutHandler::GetDescription. r=bzbarsky 2019-07-10 20:48:14 +00:00
Codegen.py Bug 1565170 - Disable toSource/uneval in non-chrome code. r=jwalden,bzbarsky 2020-01-09 11:48:58 +00:00
Configuration.py Bug 1588194 part 1. Factor out the missing property use counter code into helper functions. r=peterv 2019-10-29 16:18:44 +00:00
DOMJSClass.h Bug 1573844 - Remove external references to js::Jsvalify and js::Valueify r=mccr8 2019-08-14 17:24:59 +00:00
DOMJSProxyHandler.cpp Bug 1583684 - Fix some rooting hazards in DOM bindings r=bzbarsky 2019-09-26 23:50:14 +00:00
DOMJSProxyHandler.h Bug 1586991 part 24 - Don't assume JS atoms are null-terminated in GetArrayIndexFromId. r=bzbarsky 2019-10-19 17:55:01 +00:00
DOMString.h
Date.cpp
Date.h
ErrorIPCUtils.h Bug 1609996 - Reorder some includes affected by the previous patches. r=froydnj 2020-01-20 16:19:48 +00:00
ErrorResult.h Bug 1609996 - Reorder some includes affected by the previous patches. r=froydnj 2020-01-20 16:19:48 +00:00
Errors.msg Bug 1552301 - Implement form.requestSubmit(); r=smaug 2019-12-03 10:13:41 +00:00
Exceptions.cpp Bug 1588839 - Part 1 - Add helper to allow structured cloning Error/Exception objects. r=bzbarsky 2019-12-07 18:59:14 +00:00
Exceptions.h Bug 1588839 - Part 1 - Add helper to allow structured cloning Error/Exception objects. r=bzbarsky 2019-12-07 18:59:14 +00:00
FakeString.h Bug 1606958 - Use FakeString for UTF8String. r=bzbarsky,froydnj 2020-01-07 21:37:12 +00:00
GenerateCSS2PropertiesWebIDL.py
IterableIterator.cpp
IterableIterator.h
JSSlots.h
Makefile.in Bug 1556185 - Ensure autoconf.mk is tracked as a dependency when preprocessing webidls. r=nalexander 2019-06-03 20:33:36 +00:00
NonRefcountedDOMObject.h
Nullable.h Bug 1609996 - Reorder some includes affected by the previous patches. r=froydnj 2020-01-20 16:19:48 +00:00
PrimitiveConversions.h
ReadableStream.h
Record.h Bug 1609996 - Reorder some includes affected by the previous patches. r=froydnj 2020-01-20 16:19:48 +00:00
RemoteObjectProxy.cpp Bug 1582520: Part 3 - Fix RemoteObjectProxy immutable prototype implementation. r=bzbarsky 2019-09-25 17:49:58 +00:00
RemoteObjectProxy.h Bug 1582520: Part 3 - Fix RemoteObjectProxy immutable prototype implementation. r=bzbarsky 2019-09-25 17:49:58 +00:00
RootedDictionary.h
RootedOwningNonNull.h Bug 1547782 - Implement GCPolicy<T>::isValid for Gecko specializations r=jonco 2019-04-30 21:48:32 +00:00
RootedRefPtr.h Bug 1547782 - Implement GCPolicy<T>::isValid for Gecko specializations r=jonco 2019-04-30 21:48:32 +00:00
SimpleGlobalObject.cpp Bug 1573844 - Remove external references to js::Jsvalify and js::Valueify r=mccr8 2019-08-14 17:24:59 +00:00
SimpleGlobalObject.h Bug 1547923 part 3. Add nsIGlobalObject::GetGlobalJSObjectPreserveColor(). r=mccr8 2019-05-02 21:23:35 +00:00
SpiderMonkeyInterface.h
ToJSValue.cpp Bug 1510760, part 4 - Add transplant support to GetRemoteOuterWindowProxy(). r=peterv 2019-07-18 19:36:17 +00:00
ToJSValue.h Bug 1607796 - Use <type_traits> in dom/bindings. r=bzbarsky 2020-01-08 16:40:12 +00:00
TypedArray.h Bug 1609996 - Reorder some includes affected by the previous patches. r=froydnj 2020-01-20 16:19:48 +00:00
UnionMember.h
WebIDLGlobalNameHash.cpp Bug 1600545 - Remove useless inclusions of header files generated from IDL files in dom/ r=Ehsan 2019-12-06 09:24:56 +00:00
WebIDLGlobalNameHash.h Bug 1586683 - Remove flat strings from JSAPI. r=jwalden,bzbarsky 2019-10-14 09:32:07 +00:00
XrayExpandoClass.h
mach_commands.py
moz.build Bug 1432856 - Extended focus methods in Window.webidl, Client.webidl and Element.webidl to pass CallerType. r=smaug 2020-01-16 14:38:40 +00:00
nsIScriptError.idl Bug 1546306 - Add an optional aFromChromeContext parameter to nsIScriptError::InitWithWindowID for the case the passed in windowId is zero. r=baku 2019-06-13 09:50:49 +00:00
nsScriptError.cpp Bug 1607347. Back out part of revision 3c1f509939f1 to fix null-dereference crashes. r=mccr8 2020-01-07 19:00:07 +00:00
nsScriptError.h Bug 1546306 - Add an optional aFromChromeContext parameter to nsIScriptError::InitWithWindowID for the case the passed in windowId is zero. r=baku 2019-06-13 09:50:49 +00:00
nsScriptErrorWithStack.cpp