[clang-tidy] modernize-use-equals-default (#5719)

This commit is contained in:
Jonathan Hui
2020-10-27 21:07:41 -07:00
committed by GitHub
parent 41a73b8add
commit 5c5d5f4dd9
6 changed files with 6 additions and 5 deletions
+1
View File
@@ -117,6 +117,7 @@ readonly OT_CLANG_TIDY_BUILD_OPTS=(
readonly OT_CLANG_TIDY_CHECKS="\
-*,\
modernize-use-bool-literals,\
modernize-use-equals-default,\
modernize-use-equals-delete,\
modernize-use-nullptr,\
readability-avoid-const-params-in-decls,\
+1 -1
View File
@@ -115,7 +115,7 @@ protected:
}
private:
InstanceLocator(void) {}
InstanceLocator(void) = default;
#if OPENTHREAD_CONFIG_MULTIPLE_INSTANCE_ENABLE
Instance *mInstance;
+1 -1
View File
@@ -47,7 +47,7 @@ public:
NonCopyable &operator=(const NonCopyable &) = delete;
protected:
NonCopyable(void) {}
NonCopyable(void) = default;
};
} // namespace ot
+1 -1
View File
@@ -68,7 +68,7 @@ public:
* This is the default constructor for a `Time` object.
*
*/
Time(void) {}
Time(void) = default;
/**
* This constructor initializes a `Time` object with a given value.
+1 -1
View File
@@ -82,7 +82,7 @@ public:
* Default constructor.
*
*/
LinkMetricsTypeIdFlags(void) {}
LinkMetricsTypeIdFlags(void) = default;
/**
* Constructor for implicit cast from `uint8_t` to `LinkMetricsTypeIdFlags`.
+1 -1
View File
@@ -327,7 +327,7 @@ public:
* This is the default constructor for `DeviceMode` object.
*
*/
DeviceMode(void) {}
DeviceMode(void) = default;
/**
* This constructor initializes a `DeviceMode` object from a given mode TLV bitmask.