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

#include <ReproducerProvider.h>

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

Classes

struct  Info
 

Public Member Functions

 FileProvider (const FileSpec &directory)
 
std::shared_ptr< llvm::FileCollector > GetFileCollector ()
 
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 RecordInterestingDirectory (const llvm::Twine &dir)
 
void RecordInterestingDirectoryRecursive (const llvm::Twine &dir)
 
- Public Member Functions inherited from lldb_private::repro::Provider< FileProvider >
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
 

Static Public Attributes

static char ID = 0
 

Private Attributes

std::shared_ptr< llvm::FileCollector > m_collector
 

Additional Inherited Members

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

Detailed Description

Definition at line 94 of file ReproducerProvider.h.

Constructor & Destructor Documentation

◆ FileProvider()

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

Member Function Documentation

◆ GetFileCollector()

std::shared_ptr<llvm::FileCollector> lldb_private::repro::FileProvider::GetFileCollector ( )
inline

Definition at line 107 of file ReproducerProvider.h.

References m_collector.

◆ Keep()

void FileProvider::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 58 of file ReproducerProvider.cpp.

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

◆ RecordInterestingDirectory()

void FileProvider::RecordInterestingDirectory ( const llvm::Twine &  dir)

Definition at line 48 of file ReproducerProvider.cpp.

◆ RecordInterestingDirectoryRecursive()

void FileProvider::RecordInterestingDirectoryRecursive ( const llvm::Twine &  dir)

Definition at line 53 of file ReproducerProvider.cpp.

Member Data Documentation

◆ ID

char FileProvider::ID = 0
static

Definition at line 116 of file ReproducerProvider.h.

◆ m_collector

std::shared_ptr<llvm::FileCollector> lldb_private::repro::FileProvider::m_collector
private

Definition at line 119 of file ReproducerProvider.h.

Referenced by FileProvider(), and GetFileCollector().


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