mirror of
https://github.com/espressif/openthread.git
synced 2026-09-15 21:50:08 +00:00
[clang-tidy] modernize-use-equals-default (#5719)
This commit is contained in:
@@ -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,\
|
||||
|
||||
@@ -115,7 +115,7 @@ protected:
|
||||
}
|
||||
|
||||
private:
|
||||
InstanceLocator(void) {}
|
||||
InstanceLocator(void) = default;
|
||||
|
||||
#if OPENTHREAD_CONFIG_MULTIPLE_INSTANCE_ENABLE
|
||||
Instance *mInstance;
|
||||
|
||||
@@ -47,7 +47,7 @@ public:
|
||||
NonCopyable &operator=(const NonCopyable &) = delete;
|
||||
|
||||
protected:
|
||||
NonCopyable(void) {}
|
||||
NonCopyable(void) = default;
|
||||
};
|
||||
|
||||
} // namespace ot
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -82,7 +82,7 @@ public:
|
||||
* Default constructor.
|
||||
*
|
||||
*/
|
||||
LinkMetricsTypeIdFlags(void) {}
|
||||
LinkMetricsTypeIdFlags(void) = default;
|
||||
|
||||
/**
|
||||
* Constructor for implicit cast from `uint8_t` to `LinkMetricsTypeIdFlags`.
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user