gecko-dev/toolkit/components/places
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
..
bookmark_sync Bug 1588329 - Use the new `variableLimit` getter to chunk binding params in Places. r=mak 2019-10-15 21:23:26 +00:00
tests Bug 1511700 - Use the new notification system (PlacesObserver) for bookmark removed notifications. r=Standard8,mak 2020-01-16 18:38:54 +00:00
BookmarkHTMLUtils.jsm Bug 1578683 Turn on ESLint rule prefer-boolean-length-check for toolkit and browser r=Standard8 2019-09-14 09:39:26 +00:00
BookmarkJSONUtils.jsm Bug 1578683 Turn on ESLint rule prefer-boolean-length-check for toolkit and browser r=Standard8 2019-09-14 09:39:26 +00:00
Bookmarks.jsm Bug 1511700 - Use the new notification system (PlacesObserver) for bookmark removed notifications. r=Standard8,mak 2020-01-16 18:38:54 +00:00
Database.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
Database.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
ExtensionSearchHandler.jsm
FaviconHelpers.cpp Bug 1600242 - Stop storing favicons having Cache-Control: no-store. r=mossop 2019-12-04 18:20:49 +00:00
FaviconHelpers.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
Helpers.cpp Bug 1535379 - Remove handling of autocomplete-will-enter-text from Places. r=Standard8 2019-10-31 17:18:53 +00:00
Helpers.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
History.cpp Bug 1602882 - Move array operations to a new js/Array.h header. r=sfink,bzbarsky 2019-12-11 06:17:44 +00:00
History.h Bug 1609996 - Reorder some includes affected by the previous patches. r=froydnj 2020-01-20 16:19:48 +00:00
History.jsm Bug 1595285 - Do not track TRANSITION_EMBED visits for link-coloring purposes. r=mak 2019-11-13 16:36:09 +00:00
INativePlacesEventCallback.h
PageIconProtocolHandler.jsm
PlaceInfo.cpp Bug 1602882 - Move array operations to a new js/Array.h header. r=sfink,bzbarsky 2019-12-11 06:17:44 +00:00
PlaceInfo.h
PlacesBackups.jsm
PlacesCategoriesStarter.jsm
PlacesDBUtils.jsm Bug 1586427 - Expand Places maintenance tasks for missing and wrong item types. r=mak 2019-10-14 17:50:33 +00:00
PlacesExpiration.jsm
PlacesRemoteTabsAutocompleteProvider.jsm Bug 1579334 - Properly limit remote tab matches in the quantumbar. r=mak 2019-10-22 15:22:48 +00:00
PlacesSearchAutocompleteProvider.jsm Bug 1562926 - Use the default private search engine in the address bar. r=daleharvey 2019-08-29 14:43:43 +00:00
PlacesSyncUtils.jsm Bug 1588329 - Use the new `variableLimit` getter to chunk binding params in Places. r=mak 2019-10-15 21:23:26 +00:00
PlacesTransactions.jsm Bug 1578683 Turn on ESLint rule prefer-boolean-length-check for toolkit and browser r=Standard8 2019-09-14 09:39:26 +00:00
PlacesUtils.jsm Bug 1511700 - Use the new notification system (PlacesObserver) for bookmark removed notifications. r=Standard8,mak 2020-01-16 18:38:54 +00:00
SQLFunctions.cpp Bug 1490601 part 2 - Move C++ entry points to encoding_c_mem to mfbt/. r=jwalden 2019-09-18 08:26:34 +00:00
SQLFunctions.h
Shutdown.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
Shutdown.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
SyncedBookmarksMirror.h
SyncedBookmarksMirror.jsm Bug 1511700 - Use the new notification system (PlacesObserver) for bookmark removed notifications. r=Standard8,mak 2020-01-16 18:38:54 +00:00
TaggingService.jsm Bug 1511700 - Use the new notification system (PlacesObserver) for bookmark removed notifications. r=Standard8,mak 2020-01-16 18:38:54 +00:00
UnifiedComplete.jsm Bug 1603316 - Quantumbar: Fix slow regexp that tests for IPv4 URLs. r=mak 2020-01-17 16:08:43 +00:00
VisitInfo.cpp
VisitInfo.h
components.conf
jar.mn
moz.build
mozIAsyncHistory.idl
mozIPlacesAutoComplete.idl
mozIPlacesPendingOperation.idl
mozISyncedBookmarksMirror.idl Bug 1579728 - Use completion ops to upload synced bookmark tombstones. r=markh 2019-09-17 06:27:12 +00:00
nsAnnoProtocolHandler.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
nsAnnoProtocolHandler.h
nsAnnotationService.cpp Bug 1570499 - Part 1: Replace MOZ_FALLTHROUGH macro with C++17's [[fallthrough]] attribute. r=froydnj 2019-12-20 07:16:43 +00:00
nsAnnotationService.h
nsFaviconService.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
nsFaviconService.h Bug 1609996 - Reorder some includes affected by the previous patches. r=froydnj 2020-01-20 16:19:48 +00:00
nsIAnnotationService.idl
nsIFaviconService.idl
nsINavBookmarksService.idl Bug 1511700 - Use the new notification system (PlacesObserver) for bookmark removed notifications. r=Standard8,mak 2020-01-16 18:38:54 +00:00
nsINavHistoryService.idl Bug 1595285 - Do not track TRANSITION_EMBED visits for link-coloring purposes. r=mak 2019-11-13 16:36:09 +00:00
nsITaggingService.idl
nsNavBookmarks.cpp Bug 1511700 - Use the new notification system (PlacesObserver) for bookmark removed notifications. r=Standard8,mak 2020-01-16 18:38:54 +00:00
nsNavBookmarks.h Bug 1511700 - Use the new notification system (PlacesObserver) for bookmark removed notifications. r=Standard8,mak 2020-01-16 18:38:54 +00:00
nsNavHistory.cpp Bug 1595285 - Do not track TRANSITION_EMBED visits for link-coloring purposes. r=mak 2019-11-13 16:36:09 +00:00
nsNavHistory.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
nsNavHistoryQuery.cpp
nsNavHistoryQuery.h
nsNavHistoryResult.cpp Bug 1511700 - Use the new notification system (PlacesObserver) for bookmark removed notifications. r=Standard8,mak 2020-01-16 18:38:54 +00:00
nsNavHistoryResult.h Bug 1511700 - Use the new notification system (PlacesObserver) for bookmark removed notifications. r=Standard8,mak 2020-01-16 18:38:54 +00:00
nsPlacesIndexes.h
nsPlacesMacros.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
nsPlacesTables.h
nsPlacesTriggers.h
unifiedcomplete-top-urls.json