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

Provider for the LLDB version number. More...

#include <ReproducerProvider.h>

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

Classes

struct  Info
 

Public Member Functions

 VersionProvider (const FileSpec &directory)
 
void SetVersion (std::string version)
 
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...
 
- Public Member Functions inherited from lldb_private::repro::Provider< VersionProvider >
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
 
virtual void Discard ()
 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...
 
virtual const void * DynamicClassID () const =0
 
virtual llvm::StringRef GetName () const =0
 
virtual llvm::StringRef GetFile () const =0
 

Public Attributes

std::string m_version
 

Static Public Attributes

static char ID = 0
 

Additional Inherited Members

- Static Public Member Functions inherited from lldb_private::repro::Provider< VersionProvider >
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::Provider< VersionProvider >
 ProviderBase (const FileSpec &root)
 
- Protected Member Functions inherited from lldb_private::repro::ProviderBase
 ProviderBase (const FileSpec &root)
 

Detailed Description

Provider for the LLDB version number.

When the reproducer is kept, it writes the lldb version to a file named version.txt in the reproducer root.

Definition at line 144 of file ReproducerProvider.h.

Constructor & Destructor Documentation

◆ VersionProvider()

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

Definition at line 146 of file ReproducerProvider.h.

Member Function Documentation

◆ Keep()

void VersionProvider::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 39 of file ReproducerProvider.cpp.

References lldb_private::FileSpec::CopyByAppendingPathComponent(), and lldb_private::FileSpec::GetPath().

◆ SetVersion()

void lldb_private::repro::VersionProvider::SetVersion ( std::string  version)
inline

Definition at line 151 of file ReproducerProvider.h.

References m_version.

Referenced by InitializeFileSystem().

Member Data Documentation

◆ ID

char VersionProvider::ID = 0
static

Definition at line 157 of file ReproducerProvider.h.

◆ m_version

std::string lldb_private::repro::VersionProvider::m_version

Definition at line 156 of file ReproducerProvider.h.

Referenced by SetVersion().


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