LLDB mainline
|
Wraps either a FileSpec that represents a local file or a source file whose contents is known (for example because it can be reconstructed from debug info), but that hasn't been written to a file yet. More...
#include <SupportFile.h>
Public Types | |
enum | SupportFileEquality : uint8_t { eEqualFileSpec = (1u << 1) , eEqualChecksum = (1u << 2) , eEqualChecksumIfSet = (1u << 3) , eEqualFileSpecAndChecksum = eEqualFileSpec | eEqualChecksum , eEqualFileSpecAndChecksumIfSet = eEqualFileSpec | eEqualChecksumIfSet } |
Public Member Functions | |
SupportFile () | |
SupportFile (const FileSpec &spec) | |
SupportFile (const FileSpec &spec, const Checksum &checksum) | |
SupportFile (const SupportFile &other)=delete | |
SupportFile (SupportFile &&other)=default | |
virtual | ~SupportFile ()=default |
bool | Equal (const SupportFile &other, SupportFileEquality equality=eEqualFileSpecAndChecksum) const |
const FileSpec & | GetSpecOnly () const |
Return the file name only. Useful for resolving breakpoints by file name. | |
const Checksum & | GetChecksum () const |
Return the checksum or all zeros if there is none. | |
virtual const FileSpec & | Materialize () |
Materialize the file to disk and return the path to that temporary file. | |
Protected Attributes | |
FileSpec | m_file_spec |
Checksum | m_checksum |
Wraps either a FileSpec that represents a local file or a source file whose contents is known (for example because it can be reconstructed from debug info), but that hasn't been written to a file yet.
This also stores an optional checksum of the on-disk content.
Definition at line 21 of file SupportFile.h.
enum lldb_private::SupportFile::SupportFileEquality : uint8_t |
Enumerator | |
---|---|
eEqualFileSpec | |
eEqualChecksum | |
eEqualChecksumIfSet | |
eEqualFileSpecAndChecksum | |
eEqualFileSpecAndChecksumIfSet |
Definition at line 33 of file SupportFile.h.
|
inline |
Definition at line 23 of file SupportFile.h.
|
inline |
Definition at line 24 of file SupportFile.h.
Definition at line 25 of file SupportFile.h.
|
delete |
|
default |
|
virtualdefault |
|
inline |
Definition at line 41 of file SupportFile.h.
References eEqualChecksum, eEqualChecksumIfSet, eEqualFileSpec, m_checksum, and m_file_spec.
|
inline |
Return the checksum or all zeros if there is none.
Definition at line 69 of file SupportFile.h.
References m_checksum.
|
inline |
Return the file name only. Useful for resolving breakpoints by file name.
Definition at line 66 of file SupportFile.h.
References m_file_spec.
|
inlinevirtual |
Materialize the file to disk and return the path to that temporary file.
Definition at line 72 of file SupportFile.h.
References m_file_spec.
|
protected |
Definition at line 76 of file SupportFile.h.
Referenced by Equal(), and GetChecksum().
|
protected |
Definition at line 75 of file SupportFile.h.
Referenced by Equal(), GetSpecOnly(), and Materialize().