mirror of
https://github.com/espressif/openthread.git
synced 2026-08-16 15:47:46 +00:00
[clang-tidy] modernize-use-equals-delete (#5718)
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-delete,\
|
||||
modernize-use-nullptr,\
|
||||
readability-make-member-function-const,\
|
||||
readability-simplify-boolean-expr,\
|
||||
|
||||
@@ -42,12 +42,12 @@ namespace ot {
|
||||
*/
|
||||
class NonCopyable
|
||||
{
|
||||
public:
|
||||
NonCopyable(const NonCopyable &) = delete;
|
||||
NonCopyable &operator=(const NonCopyable &) = delete;
|
||||
|
||||
protected:
|
||||
NonCopyable(void) {}
|
||||
|
||||
private:
|
||||
NonCopyable(const NonCopyable &);
|
||||
NonCopyable &operator=(const NonCopyable &);
|
||||
};
|
||||
|
||||
} // namespace ot
|
||||
|
||||
Reference in New Issue
Block a user