Page MenuHomePhabricator Dev

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

Authored by janx on Sep 26 2018, 1:59 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Oct 8, 4:24 PM
Unknown Object (File)
Aug 1 2026, 5:03 AM
Unknown Object (File)
Jul 22 2026, 8:28 AM
Unknown Object (File)
Jul 19 2026, 10:17 PM
Unknown Object (File)
May 25 2026, 10:53 PM
Unknown Object (File)
Apr 24 2026, 9:46 AM
Unknown Object (File)
Apr 19 2026, 4:28 PM
Unknown Object (File)
Apr 9 2026, 4:27 AM
Subscribers
None

Details

Reviewers
ReviewBot
Bugzilla Bug ID
1387052
Summary

Depends on D697

Diff Detail

Repository
rMOZILLACENTRAL mozilla-central
Branch
HEAD

Event Timeline

phab-bot changed the visibility from "Custom Policy" to "Public (No Login Required)".Sep 26 2018, 1:59 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.Sep 26 2018, 1:59 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/2tb8Qk3

js/src/jsapi.cpp
237

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

B() {}
^   ~~
    = default;
238

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

B(const B&) {}
^           ~~
            = default;
239

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

B(B &&) {}
^
244

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

D(const D &RHS) : B(RHS) {}
^
245

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

D(D &&RHS) : B(RHS) {}
             ^
245

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

D(D &&RHS) : B(RHS) {}
^