gecko-dev/dom/indexedDB
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 1577202 - Added test case from fuzzying. r=dom-workers-and-storage-reviewers,asuth 2019-12-04 12:45:35 +00:00
test Bug 1607791 - Get rid of IDBMutableFile.getFile() - part 4 - Remove a few tests, r=janv 2020-01-15 12:02:15 +00:00
ActorsChild.cpp Bug 1497007 - Implemented IDBTransaction.commit. r=dom-workers-and-storage-reviewers,ytausky 2020-01-17 12:47:17 +00:00
ActorsChild.h Bug 1607791 - Get rid of IDBMutableFile.getFile() - part 1, r=asuth,janv 2020-01-15 12:02:21 +00:00
ActorsParent.cpp Bug 1605934 - Use nested namespaces r=sg 2020-01-18 13:48:34 +00:00
ActorsParent.h Bug 1600283 - Remove uses of already_AddRefed. r=dom-workers-and-storage-reviewers,janv 2019-12-19 09:24:15 +00:00
FileInfo.cpp Bug 1600283 - Remove uses of already_AddRefed. r=dom-workers-and-storage-reviewers,ytausky 2019-12-19 09:24:02 +00:00
FileInfo.h Bug 1600283 - Remove uses of already_AddRefed. r=dom-workers-and-storage-reviewers,ytausky 2019-12-19 09:24:02 +00:00
FileManager.h Bug 1600283 - Remove uses of already_AddRefed. r=dom-workers-and-storage-reviewers,janv 2019-12-16 13:17:46 +00:00
FlippedOnce.h Bug 1600906 - Made FlippedOnce member functions constexpr. r=dom-workers-and-storage-reviewers,ytausky 2019-12-13 10:54:48 +00:00
IDBCursor.cpp Bug 1497007 - Replace CanAcceptRequests by the now equivalent IsActive. r=dom-workers-and-storage-reviewers,janv 2020-01-17 12:47:09 +00:00
IDBCursor.h Bug 1600906 - Convert IDBCursor and BackgroundCursorChild to templates to increase type safety and reduce state. r=dom-workers-and-storage-reviewers,ytausky 2020-01-10 15:23:52 +00:00
IDBCursorType.cpp Bug 1600906 - Convert IDBCursor and BackgroundCursorChild to templates to increase type safety and reduce state. r=dom-workers-and-storage-reviewers,ytausky 2020-01-10 15:23:52 +00:00
IDBCursorType.h Bug 1600906 - Transform Cursor into a template depending on the cursor type. r=dom-workers-and-storage-reviewers,ytausky 2020-01-13 10:31:06 +00:00
IDBDatabase.cpp Bug 1497007 - Replace CanAcceptRequests by the now equivalent IsActive. r=dom-workers-and-storage-reviewers,janv 2020-01-17 12:47:09 +00:00
IDBDatabase.h Bug 1024312 - Get rid of IDBDatabase.mozCreateFileHandle, r=janv,dom-workers-and-storage-reviewers 2020-01-14 15:09:02 +00:00
IDBEvents.cpp Bug 1600283 - Remove uses of already_AddRefed. r=dom-workers-and-storage-reviewers,janv 2019-12-19 09:23:47 +00:00
IDBEvents.h Bug 1600283 - Remove uses of already_AddRefed. r=dom-workers-and-storage-reviewers,janv 2019-12-16 14:35:59 +00:00
IDBFactory.cpp Bug 1600283 - Replaced use of nsAutoPtr by UniquePtr. r=dom-workers-and-storage-reviewers,janv 2019-12-19 09:57:42 +00:00
IDBFactory.h Bug 1600283 - Replaced use of nsAutoPtr by UniquePtr. r=dom-workers-and-storage-reviewers,janv 2019-12-19 09:57:42 +00:00
IDBFileHandle.cpp Bug 1499105 - P1 - IDBFileHandle::Read() now throws error and returns nullptr if read size larger than 4GB r=janv,sg 2020-01-14 13:01:18 +00:00
IDBFileHandle.h Bug 1600283 - Remove uses of already_AddRefed. r=dom-workers-and-storage-reviewers,janv 2019-12-19 09:23:47 +00:00
IDBFileRequest.cpp Bug 1600283 - Remove uses of already_AddRefed. r=dom-workers-and-storage-reviewers,janv 2019-12-16 14:35:59 +00:00
IDBFileRequest.h Bug 1600283 - Remove uses of already_AddRefed. r=dom-workers-and-storage-reviewers,janv 2019-12-16 14:35:59 +00:00
IDBIndex.cpp Bug 1497007 - Replace CanAcceptRequests by the now equivalent IsActive. r=dom-workers-and-storage-reviewers,janv 2020-01-17 12:47:09 +00:00
IDBIndex.h Bug 1600283 - Replaced use of nsAutoPtr by UniquePtr. r=dom-workers-and-storage-reviewers,janv 2019-12-19 09:57:45 +00:00
IDBKeyRange.cpp Bug 1600283 - Remove uses of already_AddRefed. r=dom-workers-and-storage-reviewers,janv 2019-12-16 13:18:06 +00:00
IDBKeyRange.h Bug 1600283 - Remove uses of already_AddRefed. r=dom-workers-and-storage-reviewers,janv 2019-12-16 13:18:06 +00:00
IDBMutableFile.cpp Bug 1607791 - Get rid of IDBMutableFile.getFile() - part 1, r=asuth,janv 2020-01-15 12:02:21 +00:00
IDBMutableFile.h Bug 1607791 - Get rid of IDBMutableFile.getFile() - part 1, r=asuth,janv 2020-01-15 12:02:21 +00:00
IDBObjectStore.cpp Bug 1609996 - Reorder some includes affected by the previous patches. r=froydnj 2020-01-20 16:19:48 +00:00
IDBObjectStore.h Bug 1600906 - Convert IDBCursor and BackgroundCursorChild to templates to increase type safety and reduce state. r=dom-workers-and-storage-reviewers,ytausky 2020-01-10 15:23:52 +00:00
IDBRequest.cpp Bug 1609996 - Reorder some includes affected by the previous patches. r=froydnj 2020-01-20 16:19:48 +00:00
IDBRequest.h Bug 1600283 - Removed unused include directives. r=dom-workers-and-storage-reviewers,ytausky 2019-12-19 09:57:40 +00:00
IDBResult.h
IDBTransaction.cpp Bug 1497007 - Implemented IDBTransaction.commit. r=dom-workers-and-storage-reviewers,ytausky 2020-01-17 12:47:17 +00:00
IDBTransaction.h Bug 1497007 - Implemented IDBTransaction.commit. r=dom-workers-and-storage-reviewers,ytausky 2020-01-17 12:47:17 +00:00
IndexedDatabase.h Bug 1168606 - Replace pseudo-move constructor of StructuredCloneReadInfo by explicit DeserializeStructuredCloneReadInfo function. r=ttung,asuth 2019-11-08 13:22:08 +00:00
IndexedDatabaseInlines.h Bug 1600283 - Removed uses of already_AddRefed. r=dom-workers-and-storage-reviewers,ytausky 2019-12-19 09:57:52 +00:00
IndexedDatabaseManager.cpp Bug 1606187 - Part 2b: Update users of nsClassHashtable to handle UniquePtr differences r=KrisWright,froydnj 2020-01-13 19:18:56 +00:00
IndexedDatabaseManager.h Bug 1600283 - Remove uses of already_AddRefed. r=dom-workers-and-storage-reviewers,ytausky 2019-12-19 09:24:22 +00:00
InitializedOnce.h Bug 1600906 - Convert IDBCursor and BackgroundCursorChild to templates to increase type safety and reduce state. r=dom-workers-and-storage-reviewers,ytausky 2020-01-10 15:23:52 +00:00
Key.cpp Bug 1605934 - Use nested namespaces r=sg 2020-01-18 13:48:34 +00:00
Key.h Bug 1600906 - Avoid copying key buffers. r=dom-workers-and-storage-reviewers,ytausky 2020-01-06 14:16:33 +00:00
KeyPath.cpp Bug 1602882 - Move array operations to a new js/Array.h header. r=sfink,bzbarsky 2019-12-11 06:17:44 +00:00
KeyPath.h
moz.build Bug 1607791 - Get rid of IDBMutableFile.getFile() - part 1, r=asuth,janv 2020-01-15 12:02:21 +00:00
nsIIDBPermissionsRequest.idl
PBackgroundIDBCursor.ipdl Bug 1168606 - Support preloading also for index cursors. r=ttung,asuth 2019-11-05 14:40:35 +00:00
PBackgroundIDBDatabase.ipdl
PBackgroundIDBDatabaseFile.ipdl
PBackgroundIDBDatabaseRequest.ipdl
PBackgroundIDBFactory.ipdl
PBackgroundIDBFactoryRequest.ipdl
PBackgroundIDBRequest.ipdl
PBackgroundIDBSharedTypes.ipdlh Bug 1168606 - Change definition of OpenCursorParams subtypes to allow reducing duplicated code r=ttung,asuth 2019-09-11 11:51:26 +00:00
PBackgroundIDBTransaction.ipdl
PBackgroundIDBVersionChangeTransaction.ipdl
PBackgroundIndexedDBUtils.ipdl
PermissionRequestBase.cpp Bug 1600906 - Use std::move instead of swap, use const where then possible. r=dom-workers-and-storage-reviewers,ytausky 2020-01-09 14:43:57 +00:00
PermissionRequestBase.h
ProfilerHelpers.h Bug 1600906 - Convert IDBCursor and BackgroundCursorChild to templates to increase type safety and reduce state. r=dom-workers-and-storage-reviewers,ytausky 2020-01-10 15:23:52 +00:00
ReportInternalError.cpp
ReportInternalError.h
ScriptErrorHelper.cpp Bug 1168606 - Resolved clang-tidy warnings. r=ttung,asuth 2019-11-08 13:22:28 +00:00
ScriptErrorHelper.h
SerializationHelpers.h Bug 1600906 - Convert IDBCursor and BackgroundCursorChild to templates to increase type safety and reduce state. r=dom-workers-and-storage-reviewers,ytausky 2020-01-10 15:23:52 +00:00