LLDB mainline
lldb_protocol::mcp::ServerInfoHandle Class Reference

A handle that tracks the server info on disk and cleans up the disk record once it is no longer referenced. More...

#include <Server.h>

Public Member Functions

 ServerInfoHandle (llvm::StringRef filename="")
 ~ServerInfoHandle ()
 ServerInfoHandle (ServerInfoHandle &&other)
ServerInfoHandleoperator= (ServerInfoHandle &&other) noexcept
void Remove ()
 Remove the file.
 ServerInfoHandle (const ServerInfoHandle &)=delete
 ServerIinfoHandle is not copyable.
ServerInfoHandleoperator= (const ServerInfoHandle &)=delete

Private Attributes

llvm::SmallString< 128 > m_filename

Detailed Description

A handle that tracks the server info on disk and cleans up the disk record once it is no longer referenced.

Definition at line 110 of file Server.h.

Constructor & Destructor Documentation

◆ ServerInfoHandle() [1/3]

lldb_protocol::mcp::ServerInfoHandle::ServerInfoHandle ( llvm::StringRef filename = "")
explicit

◆ ~ServerInfoHandle()

ServerInfoHandle::~ServerInfoHandle ( )

Definition at line 29 of file Server.cpp.

References Remove().

◆ ServerInfoHandle() [2/3]

ServerInfoHandle::ServerInfoHandle ( ServerInfoHandle && other)

Definition at line 31 of file Server.cpp.

References ServerInfoHandle().

◆ ServerInfoHandle() [3/3]

lldb_protocol::mcp::ServerInfoHandle::ServerInfoHandle ( const ServerInfoHandle & )
delete

ServerIinfoHandle is not copyable.

References ServerInfoHandle().

Member Function Documentation

◆ operator=() [1/2]

ServerInfoHandle & lldb_protocol::mcp::ServerInfoHandle::operator= ( const ServerInfoHandle & )
delete

References ServerInfoHandle().

◆ operator=() [2/2]

ServerInfoHandle & ServerInfoHandle::operator= ( ServerInfoHandle && other)
noexcept

Definition at line 36 of file Server.cpp.

References m_filename, and ServerInfoHandle().

◆ Remove()

void ServerInfoHandle::Remove ( )

Remove the file.

Definition at line 41 of file Server.cpp.

References m_filename.

Referenced by ~ServerInfoHandle().

Member Data Documentation

◆ m_filename

llvm::SmallString<128> lldb_protocol::mcp::ServerInfoHandle::m_filename
private

Definition at line 128 of file Server.h.

Referenced by operator=(), and Remove().


The documentation for this class was generated from the following files: