Depends on D751
Diff Detail
- Repository
- rMOZILLACENTRAL mozilla-central
- Branch
- HEAD
- Build Status
Buildable 989 Build 1479: Analysis
Event Timeline
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
^ | |