[clang-tidy] modernize-use-equals-delete (#5718)

This commit is contained in:
Jonathan Hui
2020-10-27 19:42:58 -07:00
committed by GitHub
parent 5173214188
commit c91820f789
2 changed files with 5 additions and 4 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-delete,\
modernize-use-nullptr,\
readability-make-member-function-const,\
readability-simplify-boolean-expr,\
+4 -4
View File
@@ -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