llvm-project/lldb/source/Core/ModuleChild.cpp
Jonas Devlieghere fd2433e139 [lldb] Replace default bodies of special member functions with = default;
Replace default bodies of special member functions with = default;

$ run-clang-tidy.py -header-filter='lldb' -checks='-*,modernize-use-equals-default' -fix ,

https://clang.llvm.org/extra/clang-tidy/checks/modernize-use-equals-default.html

Differential revision: https://reviews.llvm.org/D104041
2021-07-02 11:31:16 -07:00

29 lines
880 B
C++

//===-- ModuleChild.cpp ---------------------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//
#include "lldb/Core/ModuleChild.h"
using namespace lldb_private;
ModuleChild::ModuleChild(const lldb::ModuleSP &module_sp)
: m_module_wp(module_sp) {}
ModuleChild::~ModuleChild() = default;
const ModuleChild &ModuleChild::operator=(const ModuleChild &rhs) {
if (this != &rhs)
m_module_wp = rhs.m_module_wp;
return *this;
}
lldb::ModuleSP ModuleChild::GetModule() const { return m_module_wp.lock(); }
void ModuleChild::SetModule(const lldb::ModuleSP &module_sp) {
m_module_wp = module_sp;
}