private:
// For StoppointLocation only
DISALLOW_COPY_AND_ASSIGN(StoppointLocation);
- StoppointLocation(); // Disallow default constructor
+ StoppointLocation() = delete;
};
} // namespace lldb_private
private:
// Static class, unconstructable.
- HostInfoMacOSX();
- ~HostInfoMacOSX();
+ HostInfoMacOSX() = delete;
+ ~HostInfoMacOSX() = delete;
public:
static llvm::VersionTuple GetOSVersion();
m_static_member : 1; // Non-zero if variable is static member of a class
// or struct.
private:
- Variable(const Variable &rhs);
- Variable &operator=(const Variable &rhs);
+ Variable(const Variable &rhs) = delete;
+ Variable &operator=(const Variable &rhs) = delete;
};
} // namespace lldb_private
std::mutex m_mutex;
private:
- QueueList();
+ QueueList() = delete;
};
} // namespace lldb_private
std::vector<lldb::tid_t> m_expression_tid_stack;
private:
- ThreadList();
+ ThreadList() = delete;
};
} // namespace lldb_private
ArchSpec m_arch;
private:
- UnwindAssembly(); // Outlaw default constructor
+ UnwindAssembly() = delete;
DISALLOW_COPY_AND_ASSIGN(UnwindAssembly);
};
lldb::EventDataSP m_data_sp; // User specific data for this event
DISALLOW_COPY_AND_ASSIGN(Event);
- Event(); // Disallow default constructor
+ Event() = delete;
};
} // namespace lldb_private
namespace imp {
class shared_count {
- shared_count(const shared_count &);
- shared_count &operator=(const shared_count &);
+ shared_count(const shared_count &) = delete;
+ shared_count &operator=(const shared_count &) = delete;
public:
explicit shared_count(long refs = 0) : shared_owners_(refs) {}
private:
void on_zero_shared() override;
- // Outlaw copy constructor and assignment operator to keep effective C++
- // warnings down to a minimum
- shared_ptr_pointer(const shared_ptr_pointer &);
- shared_ptr_pointer &operator=(const shared_ptr_pointer &);
+ shared_ptr_pointer(const shared_ptr_pointer &) = delete;
+ shared_ptr_pointer &operator=(const shared_ptr_pointer &) = delete;
};
template <class T> void shared_ptr_pointer<T>::on_zero_shared() {
friend class IntrusiveSharingPtr<T>;
private:
- ReferenceCountedBase(const ReferenceCountedBase &);
- ReferenceCountedBase &operator=(const ReferenceCountedBase &);
+ ReferenceCountedBase(const ReferenceCountedBase &) = delete;
+ ReferenceCountedBase &operator=(const ReferenceCountedBase &) = delete;
};
template <class T> void lldb_private::ReferenceCountedBase<T>::add_shared() {
private:
// Disallow copy and assignment constructors
- CFCBundle(const CFCBundle &);
+ CFCBundle(const CFCBundle &) = delete;
- const CFCBundle &operator=(const CFCBundle &);
+ const CFCBundle &operator=(const CFCBundle &) = delete;
};
#endif // #ifndef CoreFoundationCPP_CFBundle_h_
allocation_collection m_allocations;
private:
- MachTask(const MachTask &); // Outlaw
- MachTask &operator=(const MachTask &rhs); // Outlaw
+ MachTask(const MachTask &) = delete;
+ MachTask &operator=(const MachTask &rhs) = delete;
};
#endif // __MachTask_h__
uint32_t m_reset_ack_mask;
private:
- PThreadEvent(const PThreadEvent &); // Outlaw copy constructor
- PThreadEvent &operator=(const PThreadEvent &rhs);
+ PThreadEvent(const PThreadEvent &) = delete;
+ PThreadEvent &operator=(const PThreadEvent &rhs) = delete;
};
#endif // #ifndef __PThreadEvent_h__
int m_slave_fd;
private:
- // Outlaw copy and assignment constructors
- PseudoTerminal(const PseudoTerminal &rhs);
- PseudoTerminal &operator=(const PseudoTerminal &rhs);
+ PseudoTerminal(const PseudoTerminal &rhs) = delete;
+ PseudoTerminal &operator=(const PseudoTerminal &rhs) = delete;
};
#endif // #ifndef __PseudoTerminal_h__
static void *ThreadFunctionProcessStatus(void *arg);
private:
- // Outlaw copy and assignment operators
- RNBContext(const RNBContext &rhs);
- RNBContext &operator=(const RNBContext &rhs);
+ RNBContext(const RNBContext &rhs) = delete;
+ RNBContext &operator=(const RNBContext &rhs) = delete;
};
#endif // #ifndef __RNBContext_h__
RNBSocket &Comm() { return m_comm; }
private:
- // Outlaw some constructors
- RNBRemote(const RNBRemote &);
+ RNBRemote(const RNBRemote &) = delete;
protected:
rnb_err_t GetCommData();
int option_value);
private:
- // Outlaw some constructors
- RNBSocket(const RNBSocket &);
+ RNBSocket(const RNBSocket &) = delete;
protected:
rnb_err_t ClosePort(int &fd, bool save_errno);