gecko-dev/js/public
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
..
experimental
AllocPolicy.h
AllocationRecording.h
Array.h Bug 1602882 - Move array operations to a new js/Array.h header. r=sfink,bzbarsky 2019-12-11 06:17:44 +00:00
ArrayBuffer.h
BinASTFormat.h Bug 1590907 - Stop configure macros from masking function prototypes in public JS headers. r=jwalden,sfink 2019-11-26 10:27:27 +00:00
BuildId.h
CallArgs.h
CallNonGenericMethod.h
CharacterEncoding.h
Class.h Bug 1602882 - Move array operations to a new js/Array.h header. r=sfink,bzbarsky 2019-12-11 06:17:44 +00:00
CompilationAndEvaluation.h
CompileOptions.h
ContextOptions.h Bug 1607494 - Disable Ion for the PAC script thread. r=tcampbell 2020-01-10 18:54:42 +00:00
Conversions.h
Date.h
Debug.h
Equality.h
ErrorReport.h Bug 1568903 - Part 4: Implement AggregateError for Nightly. r=jorendorff 2019-11-22 18:12:56 +00:00
ForOfIterator.h
GCAPI.h Bug 1609636 - Part 1: Add ClearKeptObjects API. r=jonco,smaug 2020-01-20 12:49:11 +00:00
GCAnnotations.h
GCHashTable.h
GCPolicyAPI.h Bug 1603256 - Move the GC pointer type enumeration macros to a standalone header. r=sfink 2019-12-12 01:38:21 +00:00
GCTypeMacros.h Bug 1603256 - Move the GC pointer type enumeration macros to a standalone header. r=sfink 2019-12-12 01:38:21 +00:00
GCVariant.h
GCVector.h Bug 1593260 - Don't use remove_if for sweeping GCVector as the predicate can modify the elements r=anba 2019-11-05 15:42:19 +00:00
HashTable.h
HeapAPI.h Bug 1424934 - Replace the chunk's mark bitmap with one byte per cell in the arena r=sfink,jandem 2020-01-09 10:35:24 +00:00
Id.h Bug 1596603 - Add [SMDOC] to jsid comment r=tcampbell DONTBUILD 2019-11-15 16:49:08 +00:00
Initialization.h
JSON.h
LocaleSensitive.h Bug 1590907 - Make ENABLE_INTL_API and ENABLE_TYPED_OBJECTS into js-config macros. r=sfink,firefox-build-system-reviewers,mshal 2019-11-26 07:25:35 +00:00
MemoryFunctions.h
MemoryMetrics.h Bug 1599416 - Part 7: Remove unused lazyArrayBuffers table. r=mgaudet 2019-11-27 13:55:52 +00:00
Modules.h Bug 1602882 - Move array operations to a new js/Array.h header. r=sfink,bzbarsky 2019-12-11 06:17:44 +00:00
OffThreadScriptCompilation.h Bug 1590907 - Stop configure macros from masking function prototypes in public JS headers. r=jwalden,sfink 2019-11-26 10:27:27 +00:00
Principals.h
Printf.h
ProfilingCategory.h
ProfilingFrameIterator.h Bug 1468789 - Part 2: Collect inner window id information for js interpreter frames and add a mechanism to get that for jit frames r=gerald,jandem,mstange 2019-11-15 08:01:30 +00:00
ProfilingStack.h Bug 1607008 - Register threads to the Gecko Profiler outside the HelperThreadState lock. r=sfink 2020-01-10 10:50:32 +00:00
Promise.h Bug 1608338 - Inline |js::OriginalPromiseThen| into the |Promise.prototype.then| implementation, then change |js::OriginalPromiseThen| to be more suitable for use by its sole remaining JSAPI caller. r=arai 2020-01-10 21:29:20 +00:00
PropertyDescriptor.h
PropertySpec.h
ProtoKey.h Bug 1587093 - Implement WeakRef object in js shell. r=jonco 2019-12-12 21:19:11 +00:00
Proxy.h Bug 1602882 - Move array operations to a new js/Array.h header. r=sfink,bzbarsky 2019-12-11 06:17:44 +00:00
Realm.h
RealmOptions.h Bug 1259822 - Part 1: Add pref to enable fix for accessing property of null or undefined. r=jorendorff 2020-01-11 05:08:33 +00:00
RefCounted.h
RegExp.h
RegExpFlags.h
RequiredDefines.h
Result.h
RootingAPI.h Bug 1609996 - Run check_spidermonkey_style.py --fixup. r=froydnj 2020-01-20 16:18:40 +00:00
SavedFrameAPI.h
SharedArrayBuffer.h Bug 1602165 - Rename JS_ContainsSharedArrayBuffer to JS::ContainsSharedArrayBuffer, and move it to js/SharedArrayBuffer.h. r=lth 2019-12-07 15:01:16 +00:00
SliceBudget.h
SourceText.h
StableStringChars.h
Stream.h
StructuredClone.h Bug 1609996 - Run check_spidermonkey_style.py --fixup. r=froydnj 2020-01-20 16:18:40 +00:00
SweepingAPI.h
Symbol.h
TraceKind.h Bug 1530372 - Part 1: Change BigInt to an in-line trace kind. r=sfink 2020-01-02 13:03:20 +00:00
TraceLoggerAPI.h
TracingAPI.h Bug 1605348 - Only trace the target of a WeakRef if the tracer requests weak edges r=sfink 2020-01-02 11:02:31 +00:00
TrackedOptimizationInfo.h
Transcoding.h
TypeDecls.h
UbiNode.h Bug 1609996 - Run check_spidermonkey_style.py --fixup. r=froydnj 2020-01-20 16:18:40 +00:00
UbiNodeBreadthFirst.h
UbiNodeCensus.h Bug 1609996 - Run check_spidermonkey_style.py --fixup. r=froydnj 2020-01-20 16:18:40 +00:00
UbiNodeDominatorTree.h Bug 1609996 - Run check_spidermonkey_style.py --fixup. r=froydnj 2020-01-20 16:18:40 +00:00
UbiNodePostOrder.h Bug 1609996 - Reorder some includes affected by the previous patches. r=froydnj 2020-01-20 16:19:48 +00:00
UbiNodeShortestPaths.h Bug 1609996 - Reorder some includes affected by the previous patches. r=froydnj 2020-01-20 16:19:48 +00:00
UbiNodeUtils.h
UniquePtr.h
Utility.h Bug 1609996 - Run check_spidermonkey_style.py --fixup. r=froydnj 2020-01-20 16:18:40 +00:00
Value.h Bug 1530372 - Part 1: Change BigInt to an in-line trace kind. r=sfink 2020-01-02 13:03:20 +00:00
ValueArray.h Bug 1603845 - Fix clang-format issues in js/ r=iain 2019-12-13 21:35:17 +00:00
Vector.h
Warnings.h
WeakMapPtr.h
Wrapper.h