Enable modernize-use-equals-default clang tidy rule

Summary:
changelog: [internal]

You can read more about this rule on https://clang.llvm.org/extra/clang-tidy/checks/modernize-use-equals-default.html

Reviewed By: rubennorte

Differential Revision: D33295116

fbshipit-source-id: d7da62c35e141fc2bf5a83c28f80f4f8d355c4cb
This commit is contained in:
Samuel Susla
2021-12-23 10:21:09 -08:00
committed by Facebook GitHub Bot
parent 1251b2f993
commit bf9872a7b5
4 changed files with 4 additions and 3 deletions
+1
View File
@@ -20,5 +20,6 @@ modernize-replace-random-shuffle,
modernize-unary-static-assert,
modernize-use-emplace,
modernize-shrink-to-fit,
modernize-use-equals-default,
'
...
+1 -1
View File
@@ -35,7 +35,7 @@ Sealable::Sealable(Sealable &&other) noexcept : sealed_(false) {
other.ensureUnsealed();
};
Sealable::~Sealable() noexcept {};
Sealable::~Sealable() noexcept = default;
Sealable &Sealable::operator=(const Sealable &other) {
ensureUnsealed();
@@ -56,7 +56,7 @@ NativeModuleRegistry buildNativeModuleRegistry() {
class MockReactNativeConfig : public ReactNativeConfig {
public:
MockReactNativeConfig() {}
MockReactNativeConfig() = default;
bool getBool(const std::string &param) const override {
return mockSimpleTestValue_;
}
@@ -20,7 +20,7 @@ using namespace facebook::jni;
namespace facebook {
namespace react {
TextLayoutManager::~TextLayoutManager() {}
TextLayoutManager::~TextLayoutManager() = default;
void *TextLayoutManager::getNativeTextLayoutManager() const {
return self_;