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 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 | operator== (const SupportFile &other) const |
bool | operator!= (const SupportFile &other) 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. | |
void | Update (const FileSpec &file_spec) |
Change the file name. | |
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.
|
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 |
Return the checksum or all zeros if there is none.
Definition at line 43 of file SupportFile.h.
References m_checksum.
|
inline |
Return the file name only. Useful for resolving breakpoints by file name.
Definition at line 40 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 46 of file SupportFile.h.
References m_file_spec.
|
inline |
Definition at line 37 of file SupportFile.h.
|
inline |
Definition at line 33 of file SupportFile.h.
References m_checksum, and m_file_spec.
|
inline |
|
protected |
Definition at line 53 of file SupportFile.h.
Referenced by GetChecksum(), and operator==().
|
protected |
Definition at line 52 of file SupportFile.h.
Referenced by GetSpecOnly(), Materialize(), operator==(), and Update().