LLDB  mainline
Public Types | Public Member Functions | Static Public Attributes | List of all members
lldb_private::repro::CommandProvider Class Reference

#include <Reproducer.h>

Inheritance diagram for lldb_private::repro::CommandProvider:
Inheritance graph
[legend]
Collaboration diagram for lldb_private::repro::CommandProvider:
Collaboration graph
[legend]

Public Types

typedef CommandInfo info
 

Public Member Functions

 CommandProvider (const FileSpec &directory)
 
DataRecorderGetNewDataRecorder ()
 
void Keep () override
 The Keep method is called when it is decided that we need to keep the data in order to provide a reproducer. More...
 
void Discard () override
 The Discard method is called when it is decided that we do not need to keep any information and will not generate a reproducer. More...
 
- Public Member Functions inherited from lldb_private::repro::Provider< CommandProvider >
const void * DynamicClassID () const override
 
llvm::StringRef GetName () const override
 
llvm::StringRef GetFile () const override
 
- Public Member Functions inherited from lldb_private::repro::ProviderBase
virtual ~ProviderBase ()=default
 
const FileSpecGetRoot () const
 

Static Public Attributes

static char ID = 0
 

Additional Inherited Members

- Static Public Member Functions inherited from lldb_private::repro::Provider< CommandProvider >
static const void * ClassID ()
 
- Static Public Member Functions inherited from lldb_private::repro::ProviderBase
static const void * ClassID ()
 
- Protected Member Functions inherited from lldb_private::repro::ProviderBase
 ProviderBase (const FileSpec &root)
 

Detailed Description

Definition at line 149 of file Reproducer.h.

Member Typedef Documentation

◆ info

Definition at line 151 of file Reproducer.h.

Constructor & Destructor Documentation

◆ CommandProvider()

lldb_private::repro::CommandProvider::CommandProvider ( const FileSpec directory)
inline

Definition at line 153 of file Reproducer.h.

Member Function Documentation

◆ Discard()

void CommandProvider::Discard ( )
overridevirtual

The Discard method is called when it is decided that we do not need to keep any information and will not generate a reproducer.

Reimplemented from lldb_private::repro::ProviderBase.

Definition at line 264 of file Reproducer.cpp.

References lldb_private::repro::FileInfo::file, lldb_private::repro::CommandInfo::file, lldb_private::repro::FileProvider::ID, ID, lldb_private::repro::FileInfo::name, and lldb_private::repro::CommandInfo::name.

◆ GetNewDataRecorder()

DataRecorder * CommandProvider::GetNewDataRecorder ( )

◆ Keep()

void CommandProvider::Keep ( )
overridevirtual

The Keep method is called when it is decided that we need to keep the data in order to provide a reproducer.

Reimplemented from lldb_private::repro::ProviderBase.

Definition at line 248 of file Reproducer.cpp.

References lldb_private::FileSpec::CopyByAppendingPathComponent(), lldb_private::FileSpec::GetPath(), and lldb_private::repro::Loader::GetRoot().

Member Data Documentation

◆ ID

char CommandProvider::ID = 0
static

Definition at line 160 of file Reproducer.h.

Referenced by Discard().


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