Skip to content

Commit

Permalink
Bug 1856795 - ride along: use = default; on some recently modified fi…
Browse files Browse the repository at this point in the history
…les r=emilio

More on:
https://clang.llvm.org/extra/clang-tidy/checks/modernize/use-equals-default.html

Command:
L=$(hg export -r tip|grep +++|cut -d/ -f2-)
./mach static-analysis check --checks="-*, modernize-use-equals-default" --fix $L

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

UltraBlame original commit: aba20bc488e22880b8ef5a89916ecabb51cee798
  • Loading branch information
marco-c committed Oct 16, 2023
1 parent 8038c33 commit cafaed3
Show file tree
Hide file tree
Showing 39 changed files with 148 additions and 100 deletions.
5 changes: 3 additions & 2 deletions accessible/atk/ApplicationAccessibleWrap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,9 @@ ApplicationAccessibleWrap
ApplicationAccessibleWrap
(
)
{
}
=
default
;
ApplicationAccessibleWrap
:
:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -214,8 +214,9 @@ DeserializedStackFrame
MockDeserializedStackFrame
(
)
{
}
=
default
;
}
;
DEF_TEST
Expand Down
5 changes: 3 additions & 2 deletions devtools/shared/heapsnapshot/tests/gtest/DevTools.h
Original file line number Diff line number Diff line change
Expand Up @@ -1322,8 +1322,9 @@ MockWriter
(
)
override
{
}
=
default
;
MOCK_METHOD2
(
writeNode
Expand Down
5 changes: 3 additions & 2 deletions dom/base/nsFrameMessageManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9224,8 +9224,9 @@ public
nsAsyncMessageToSameProcessParent
(
)
{
}
=
default
;
nsresult
HandleMessage
(
Expand Down
5 changes: 3 additions & 2 deletions dom/base/nsGlobalWindowOuter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9798,8 +9798,9 @@ constexpr
nsChromeOuterWindowProxy
(
)
{
}
=
default
;
const
char
*
Expand Down
5 changes: 3 additions & 2 deletions dom/html/ConstraintValidation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -448,8 +448,9 @@ ConstraintValidation
ConstraintValidation
(
)
{
}
=
default
;
void
ConstraintValidation
:
Expand Down
5 changes: 3 additions & 2 deletions dom/ipc/SharedMap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -339,8 +339,9 @@ SharedMap
SharedMap
(
)
{
}
=
default
;
SharedMap
:
:
Expand Down
5 changes: 3 additions & 2 deletions dom/media/gtest/TestWebMWriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -413,8 +413,9 @@ public
TestWebMWriter
(
)
{
}
=
default
;
/
/
When
Expand Down
15 changes: 9 additions & 6 deletions dom/media/webrtc/sdp/SdpAttribute.h
Original file line number Diff line number Diff line change
Expand Up @@ -305,8 +305,9 @@ virtual
SdpAttribute
(
)
{
}
=
default
;
virtual
SdpAttribute
*
Expand Down Expand Up @@ -10285,8 +10286,9 @@ virtual
Parameters
(
)
{
}
=
default
;
virtual
Parameters
*
Expand Down Expand Up @@ -10559,8 +10561,9 @@ virtual
RtxParameters
(
)
{
}
=
default
;
virtual
Parameters
*
Expand Down
5 changes: 3 additions & 2 deletions dom/media/webrtc/transport/stun_socket_filter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -683,8 +683,9 @@ public
STUNUDPSocketFilter
(
)
{
}
=
default
;
/
/
Allocated
Expand Down
5 changes: 3 additions & 2 deletions dom/media/webrtc/transport/test/ice_unittest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -808,8 +808,9 @@ public
StunTest
(
)
{
}
=
default
;
void
SetUp
(
Expand Down
5 changes: 3 additions & 2 deletions gfx/2d/Path.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -205,8 +205,9 @@ Super
PointD
(
)
{
}
=
default
;
PointD
(
double
Expand Down
5 changes: 3 additions & 2 deletions gfx/vr/service/PuppetSession.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -206,8 +206,9 @@ PuppetSession
PuppetSession
(
)
{
}
=
default
;
PuppetSession
:
:
Expand Down
10 changes: 6 additions & 4 deletions image/imgFrame.h
Original file line number Diff line number Diff line change
Expand Up @@ -2047,8 +2047,9 @@ public
DrawableFrameRef
(
)
{
}
=
default
;
explicit
DrawableFrameRef
(
Expand Down Expand Up @@ -2651,8 +2652,9 @@ nullptr
RawAccessFrameRef
(
)
{
}
=
default
;
RawAccessFrameRef
&
operator
Expand Down
10 changes: 6 additions & 4 deletions ipc/chromium/src/base/histogram.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3174,8 +3174,9 @@ SampleSet
SampleSet
(
)
{
}
=
default
;
void
Histogram
:
Expand Down Expand Up @@ -3636,8 +3637,9 @@ LinearHistogram
LinearHistogram
(
)
{
}
=
default
;
Histogram
*
LinearHistogram
Expand Down
10 changes: 6 additions & 4 deletions ipc/chromium/src/base/lock.h
Original file line number Diff line number Diff line change
Expand Up @@ -155,14 +155,16 @@ implementation
Lock
(
)
{
}
=
default
;
~
Lock
(
)
{
}
=
default
;
void
Acquire
(
Expand Down
5 changes: 3 additions & 2 deletions js/src/builtin/TestingFunctions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30074,8 +30074,9 @@ public
ShellAllocationMetadataBuilder
(
)
{
}
=
default
;
virtual
JSObject
*
Expand Down
10 changes: 6 additions & 4 deletions js/src/jit/RegisterSets.h
Original file line number Diff line number Diff line change
Expand Up @@ -3855,8 +3855,9 @@ public
AllocatableSetAccessors
(
)
{
}
=
default
;
explicit
constexpr
AllocatableSetAccessors
Expand Down Expand Up @@ -4414,8 +4415,9 @@ public
LiveSetAccessors
(
)
{
}
=
default
;
explicit
constexpr
LiveSetAccessors
Expand Down
5 changes: 3 additions & 2 deletions js/src/jsapi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24355,8 +24355,9 @@ JSErrorNotes
JSErrorNotes
(
)
{
}
=
default
;
JSErrorNotes
:
:
Expand Down
5 changes: 3 additions & 2 deletions js/src/vm/SavedStacks.h
Original file line number Diff line number Diff line change
Expand Up @@ -2181,8 +2181,9 @@ AllocationMetadataBuilder
MetadataBuilder
(
)
{
}
=
default
;
virtual
JSObject
*
Expand Down
5 changes: 3 additions & 2 deletions js/src/vm/SharedImmutableStringsCache.h
Original file line number Diff line number Diff line change
Expand Up @@ -2016,8 +2016,9 @@ set
Inner
(
)
{
}
=
default
;
Inner
(
const
Expand Down
5 changes: 3 additions & 2 deletions js/src/vm/Stack.h
Original file line number Diff line number Diff line change
Expand Up @@ -1754,8 +1754,9 @@ public
NullFramePtr
(
)
{
}
=
default
;
}
;
enum
Expand Down
5 changes: 3 additions & 2 deletions js/src/vm/UbiNodeCensus.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -876,8 +876,9 @@ explicit
BucketCount
(
)
{
}
=
default
;
void
destructCount
(
Expand Down
5 changes: 3 additions & 2 deletions js/src/wasm/WasmTypeDef.h
Original file line number Diff line number Diff line change
Expand Up @@ -908,8 +908,9 @@ public
FuncType
(
)
{
}
=
default
;
FuncType
(
ValTypeVector
Expand Down
10 changes: 6 additions & 4 deletions js/src/wasm/WasmValue.h
Original file line number Diff line number Diff line change
Expand Up @@ -1341,8 +1341,9 @@ public
LitVal
(
)
{
}
=
default
;
explicit
LitVal
(
Expand Down Expand Up @@ -1900,8 +1901,9 @@ public
Val
(
)
{
}
=
default
;
explicit
Val
(
Expand Down
5 changes: 3 additions & 2 deletions memory/replace/dmd/DMD.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7092,8 +7092,9 @@ AllocStackTrace
DeadBlock
(
)
{
}
=
default
;
size_t
ReqSize
(
Expand Down
Loading

0 comments on commit cafaed3

Please sign in to comment.