Page MenuHomePhabricator Dev

Bug 1387052 - Make Firefox code worse intentionally 2/2.
Needs ReviewPublic

Authored by janx on Oct 12 2018, 2:03 PM.
Tags
None
Referenced Files
F67107206: D752.1792506923.diff
Mon, Oct 19, 2:35 PM
Unknown Object (File)
Thu, Oct 8, 4:22 PM
Unknown Object (File)
Aug 6 2026, 11:20 PM
Unknown Object (File)
Jul 22 2026, 12:01 PM
Unknown Object (File)
Jul 11 2026, 12:07 PM
Unknown Object (File)
Jun 13 2026, 1:54 PM
Unknown Object (File)
Jun 9 2026, 12:24 PM
Unknown Object (File)
Jun 9 2026, 9:37 AM
Subscribers
None

Details

Reviewers
ReviewBot
Bugzilla Bug ID
1387052
Summary

Depends on D751

Diff Detail

Event Timeline

phab-bot changed the visibility from "Custom Policy" to "Public (No Login Required)".Oct 12 2018, 2:03 PM
phab-bot changed the edit policy from "Custom Policy" to "Restricted Project (Project)".
phab-bot removed a project: Restricted Project.
janx requested review of this revision.Oct 12 2018, 2:03 PM

Code analysis found 6 defects in this patch:

  • 6 defects found by clang-tidy

You can run this analysis locally with:

  • ./mach static-analysis check path/to/file.cpp (C/C++)

If you see a problem in this automated review, please report it here: https://bit.ly/2IyNRy2

js/src/jsapi.cpp
237

Warning: Use '= default' to define a trivial default constructor [clang-tidy: modernize-use-equals-default]

B() {} // after: modernize-use-equals-default
^   ~~
    = default;
238

Warning: Use '= default' to define a trivial copy constructor [clang-tidy: modernize-use-equals-default]

B(const B&) {} // after: modernize-use-equals-default
^           ~~
            = default;
239

Warning: Move constructors should be marked noexcept [clang-tidy: performance-noexcept-move-constructor]

B(B &&) {} // after: performance-noexcept-move-constructor
^
244

Warning: Use '= default' to define a trivial copy constructor [clang-tidy: modernize-use-equals-default]

D(const D &RHS) : B(RHS) {} // after: modernize-use-equals-default
^
245

Warning: Move constructor initializes base class by calling a copy constructor [clang-tidy: performance-move-constructor-init]

D(D &&RHS) : B(RHS) {} // after: performance-move-constructor-init; performance-noexcept-move-constructor
             ^
245

Warning: Move constructors should be marked noexcept [clang-tidy: performance-noexcept-move-constructor]

D(D &&RHS) : B(RHS) {} // after: performance-move-constructor-init; performance-noexcept-move-constructor
^

Code analysis found 5 defects in this patch:

  • 5 defects found by clang-tidy

You can run this analysis locally with:

  • ./mach static-analysis check path/to/file.cpp (C/C++)

If you see a problem in this automated review, please report it here: https://bit.ly/2IyNRy2

js/src/jsapi.cpp
237

Warning: Use '= default' to define a trivial default constructor [clang-tidy: modernize-use-equals-default]

B() {} // after: modernize-use-equals-default
^   ~~
    = default;
238

Warning: Use '= default' to define a trivial copy constructor [clang-tidy: modernize-use-equals-default]

B(const B&) {} // after: modernize-use-equals-default
^           ~~
            = default;
239

Warning: Move constructors should be marked noexcept [clang-tidy: performance-noexcept-move-constructor]

B(B &&) {} // after: performance-noexcept-move-constructor
^
245

Warning: Move constructors should be marked noexcept [clang-tidy: performance-noexcept-move-constructor]

D(D &&RHS) : B(RHS) {} // after: performance-move-constructor-init; performance-noexcept-move-constructor
^
245

Warning: Move constructor initializes base class by calling a copy constructor [clang-tidy: performance-move-constructor-init]

D(D &&RHS) : B(RHS) {} // after: performance-move-constructor-init; performance-noexcept-move-constructor
             ^