LLDB  mainline
Public Member Functions | Static Public Member Functions | Protected Member Functions | Static Private Member Functions | Private Attributes | List of all members
lldb_private::repro::Reproducer Class Reference

The reproducer enables clients to obtain access to the Generator and Loader. More...

#include <Reproducer.h>

Collaboration diagram for lldb_private::repro::Reproducer:
Collaboration graph
[legend]

Public Member Functions

 Reproducer ()=default
 
GeneratorGetGenerator ()
 
LoaderGetLoader ()
 
const GeneratorGetGenerator () const
 
const LoaderGetLoader () const
 
FileSpec GetReproducerPath () const
 
bool IsCapturing ()
 

Static Public Member Functions

static ReproducerInstance ()
 
static llvm::Error Initialize (ReproducerMode mode, llvm::Optional< FileSpec > root)
 
static void Initialize ()
 
static bool Initialized ()
 
static void Terminate ()
 

Protected Member Functions

llvm::Error SetCapture (llvm::Optional< FileSpec > root)
 

Static Private Member Functions

static llvm::Optional< Reproducer > & InstanceImpl ()
 

Private Attributes

llvm::Optional< Generatorm_generator
 
llvm::Optional< Loaderm_loader
 
std::mutex m_mutex
 

Detailed Description

The reproducer enables clients to obtain access to the Generator and Loader.

Definition at line 190 of file Reproducer.h.

Constructor & Destructor Documentation

◆ Reproducer()

lldb_private::repro::Reproducer::Reproducer ( )
default

Member Function Documentation

◆ GetGenerator() [1/2]

Generator * Reproducer::GetGenerator ( )

Definition at line 70 of file Reproducer.cpp.

◆ GetGenerator() [2/2]

const Generator* lldb_private::repro::Reproducer::GetGenerator ( ) const

◆ GetLoader() [1/2]

Loader * Reproducer::GetLoader ( )

Definition at line 77 of file Reproducer.cpp.

◆ GetLoader() [2/2]

const Loader* lldb_private::repro::Reproducer::GetLoader ( ) const

◆ GetReproducerPath()

FileSpec Reproducer::GetReproducerPath ( ) const

Definition at line 115 of file Reproducer.cpp.

◆ Initialize() [1/2]

void Reproducer::Initialize ( )
static

Definition at line 54 of file Reproducer.cpp.

References lldb_private::repro::Off.

◆ Initialize() [2/2]

llvm::Error Reproducer::Initialize ( ReproducerMode  mode,
llvm::Optional< FileSpec root 
)
static

Definition at line 25 of file Reproducer.cpp.

References lldb_private::repro::Capture, lldbassert, and lldb_private::repro::Off.

◆ Initialized()

bool Reproducer::Initialized ( )
static

Definition at line 58 of file Reproducer.cpp.

◆ Instance()

Reproducer & Reproducer::Instance ( )
static

◆ InstanceImpl()

Optional< Reproducer > & Reproducer::InstanceImpl ( )
staticprivate

Definition at line 65 of file Reproducer.cpp.

◆ IsCapturing()

bool lldb_private::repro::Reproducer::IsCapturing ( )
inline

Definition at line 209 of file Reproducer.h.

References m_generator.

◆ SetCapture()

llvm::Error Reproducer::SetCapture ( llvm::Optional< FileSpec root)
protected

Definition at line 98 of file Reproducer.cpp.

◆ Terminate()

void Reproducer::Terminate ( )
static

Definition at line 60 of file Reproducer.cpp.

References lldbassert.

Member Data Documentation

◆ m_generator

llvm::Optional<Generator> lldb_private::repro::Reproducer::m_generator
private

Definition at line 217 of file Reproducer.h.

Referenced by IsCapturing().

◆ m_loader

llvm::Optional<Loader> lldb_private::repro::Reproducer::m_loader
private

Definition at line 218 of file Reproducer.h.

◆ m_mutex

std::mutex lldb_private::repro::Reproducer::m_mutex
mutableprivate

Definition at line 220 of file Reproducer.h.


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