gecko-dev/netwerk/ipc
Valentin Gosu 1a1f42da37 Bug 1714307 - Run modernize-use-default-member-init --fix check on netwerk r=necko-reviewers,kershaw
This changeset is the result of adding modernize-use-default-member-init to
tools/clang-tidy/config.yaml then proceeding to run
`./mach static-analysis check netwerk/ --fix`
I then went through the resulting fix and manually updated all of the member
variables which were missed due to them having a non-trivial constructor.

Note that the tool was only run on Linux, so code that only runs on some
platforms may have been missed.

The member variables that are still initialized in the contructor definition
are:
  - bitfields (not all currently supported compilers allow default-member-init
  - variables that are initialized via a parameter
  - variables that use code not visible in the header file

There are a few advantages to landing this change:
- fewer lines of code - now declaration is in the same place as initialization
  this also makes it easier to see when looking at the header.
- it makes it harder to miss initializing a member when adding a new contructor
- variables that depend on an include guard look much nicer now

Additionally I removed some unnecessary reinitialization of NetAddr members
(it has a constructor that does that now), and changed nsWifiScannerDBus to
use the thread-safe strtok_r instead of strtok.

Differential Revision: https://phabricator.services.mozilla.com/D116980
2021-06-11 07:10:41 +00:00
..
ChannelEventQueue.cpp
ChannelEventQueue.h
DocumentChannel.cpp Bug 1685900 - Split internal and external contentPolicyType. r=ckerschb,smaug 2021-01-15 12:07:16 +00:00
DocumentChannel.h Bug 1696175 - Call DisconnectChildListeners at a later time for BFCache in the parent. r=necko-reviewers,nika 2021-05-13 15:38:01 +00:00
DocumentChannelChild.cpp Bug 1696175 - Call DisconnectChildListeners at a later time for BFCache in the parent. r=necko-reviewers,nika 2021-05-13 15:38:01 +00:00
DocumentChannelChild.h Bug 1597427 - Check for recursive subframe loads in the parent process, r=kmag,necko-reviewers 2021-03-11 00:39:37 +00:00
DocumentChannelParent.cpp Bug 1689601, Add DocumentChannel ID to DocumentLoadListener, r=peterv 2021-03-02 12:13:17 +00:00
DocumentChannelParent.h
DocumentLoadListener.cpp Bug 1713365, don't try to bfcache if the session history entry already has a frameloader, r=peterv 2021-06-03 20:34:24 +00:00
DocumentLoadListener.h Bug 1714307 - Autofix static-analysis warnings in netwerk/ r=necko-reviewers,kershaw 2021-06-04 12:35:16 +00:00
InputChannelThrottleQueueChild.cpp
InputChannelThrottleQueueChild.h
InputChannelThrottleQueueParent.cpp Bug 1714307 - Run modernize-use-default-member-init --fix check on netwerk r=necko-reviewers,kershaw 2021-06-11 07:10:41 +00:00
InputChannelThrottleQueueParent.h Bug 1714307 - Run modernize-use-default-member-init --fix check on netwerk r=necko-reviewers,kershaw 2021-06-11 07:10:41 +00:00
moz.build Bug 1710625 - SandboxTest with SocketProcess r=necko-reviewers,handyman,jld,kershaw 2021-06-03 06:45:59 +00:00
NeckoChannelParams.ipdlh Bug 1706615 - Part 1: Add a UnstrippedURI into the LoadInfo. r=valentin,necko-reviewers 2021-06-02 19:46:19 +00:00
NeckoChild.cpp Bug 1491084 - Remove unused code that shows http auth prompt for nested content process, r=necko-reviewers,dragana 2021-05-18 19:43:05 +00:00
NeckoChild.h Bug 1491084 - Remove unused code that shows http auth prompt for nested content process, r=necko-reviewers,dragana 2021-05-18 19:43:05 +00:00
NeckoCommon.h
NeckoMessageUtils.h
NeckoParent.cpp Bug 1491084 - Remove unused code that shows http auth prompt for nested content process, r=necko-reviewers,dragana 2021-05-18 19:43:05 +00:00
NeckoParent.h Bug 1491084 - Remove unused code that shows http auth prompt for nested content process, r=necko-reviewers,dragana 2021-05-18 19:43:05 +00:00
NeckoTargetHolder.cpp
NeckoTargetHolder.h
ParentChannelWrapper.cpp
ParentChannelWrapper.h
ParentProcessDocumentChannel.cpp Bug 1674464 - Stop adding entries for about:tabcrashed when SHIP is enabled. r=smaug 2021-01-26 12:41:22 +00:00
ParentProcessDocumentChannel.h Bug 1715144 - Part 1: Stop adding /ipc/glue to LOCAL_INCLUDES when including chromium-config.mozbuild, r=ipc-reviewers,necko-reviewers,mccr8,valentin 2021-06-09 04:56:48 +00:00
PDataChannel.ipdl
PDocumentChannel.ipdl
PFileChannel.ipdl
PInputChannelThrottleQueue.ipdl
PNecko.ipdl Bug 1491084 - Remove unused code that shows http auth prompt for nested content process, r=necko-reviewers,dragana 2021-05-18 19:43:05 +00:00
PProxyConfigLookup.ipdl
ProxyConfigLookup.cpp
ProxyConfigLookup.h
ProxyConfigLookupChild.cpp
ProxyConfigLookupChild.h
ProxyConfigLookupParent.cpp
ProxyConfigLookupParent.h
PSimpleChannel.ipdl
PSocketProcess.ipdl Bug 1710625 - SandboxTest with SocketProcess r=necko-reviewers,handyman,jld,kershaw 2021-06-03 06:45:59 +00:00
PSocketProcessBridge.ipdl
SocketProcessBridgeChild.cpp Bug 1677632 - pt1 - restart the socket process after a crash. r=kershaw,necko-reviewers 2021-01-28 16:42:53 +00:00
SocketProcessBridgeChild.h Bug 1714307 - Autofix static-analysis warnings in netwerk/ r=necko-reviewers,kershaw 2021-06-04 12:35:16 +00:00
SocketProcessBridgeParent.cpp
SocketProcessBridgeParent.h
SocketProcessChild.cpp Bug 1714307 - Run modernize-use-default-member-init --fix check on netwerk r=necko-reviewers,kershaw 2021-06-11 07:10:41 +00:00
SocketProcessChild.h Bug 1714307 - Run modernize-use-default-member-init --fix check on netwerk r=necko-reviewers,kershaw 2021-06-11 07:10:41 +00:00
SocketProcessHost.cpp Bug 1715144 - Part 1: Stop adding /ipc/glue to LOCAL_INCLUDES when including chromium-config.mozbuild, r=ipc-reviewers,necko-reviewers,mccr8,valentin 2021-06-09 04:56:48 +00:00
SocketProcessHost.h
SocketProcessImpl.cpp Bug 1715144 - Part 1: Stop adding /ipc/glue to LOCAL_INCLUDES when including chromium-config.mozbuild, r=ipc-reviewers,necko-reviewers,mccr8,valentin 2021-06-09 04:56:48 +00:00
SocketProcessImpl.h Bug 1714307 - Autofix static-analysis warnings in netwerk/ r=necko-reviewers,kershaw 2021-06-04 12:35:16 +00:00
SocketProcessLogging.h
SocketProcessParent.cpp Bug 1686616 - make HttpActivityDistributor use Components instead of Services. r=kmag,necko-reviewers,valentin 2021-02-18 13:26:30 +00:00
SocketProcessParent.h Bug 1714307 - Autofix static-analysis warnings in netwerk/ r=necko-reviewers,kershaw 2021-06-04 12:35:16 +00:00