Please use GitHub pull requests for new patches. Avoid migrating existing patches. Phabricator shutdown timeline
Changeset View
Changeset View
Standalone View
Standalone View
lldb/source/API/SBFile.cpp
Show First 20 Lines • Show All 102 Lines • ▼ Show 20 Lines | SBFile::operator bool() const { | ||||
return LLDB_RECORD_RESULT(IsValid()); | return LLDB_RECORD_RESULT(IsValid()); | ||||
} | } | ||||
bool SBFile::operator!() const { | bool SBFile::operator!() const { | ||||
LLDB_RECORD_METHOD_CONST_NO_ARGS(bool, SBFile, operator!); | LLDB_RECORD_METHOD_CONST_NO_ARGS(bool, SBFile, operator!); | ||||
return LLDB_RECORD_RESULT(!IsValid()); | return LLDB_RECORD_RESULT(!IsValid()); | ||||
} | } | ||||
FileSP SBFile::GetFile() const { | |||||
LLDB_RECORD_METHOD_CONST_NO_ARGS(FileSP, SBFile, GetFile); | |||||
return m_opaque_sp; | |||||
} | |||||
namespace lldb_private { | namespace lldb_private { | ||||
namespace repro { | namespace repro { | ||||
template <> void RegisterMethods<SBFile>(Registry &R) { | template <> void RegisterMethods<SBFile>(Registry &R) { | ||||
LLDB_REGISTER_METHOD(lldb::SBError, SBFile, Flush, ()); | LLDB_REGISTER_METHOD(lldb::SBError, SBFile, Flush, ()); | ||||
LLDB_REGISTER_METHOD_CONST(bool, SBFile, IsValid, ()); | LLDB_REGISTER_METHOD_CONST(bool, SBFile, IsValid, ()); | ||||
LLDB_REGISTER_METHOD_CONST(bool, SBFile, operator bool,()); | LLDB_REGISTER_METHOD_CONST(bool, SBFile, operator bool,()); | ||||
LLDB_REGISTER_METHOD_CONST(bool, SBFile, operator!,()); | LLDB_REGISTER_METHOD_CONST(bool, SBFile, operator!,()); | ||||
LLDB_REGISTER_METHOD_CONST(FileSP, SBFile, GetFile, ()); | |||||
LLDB_REGISTER_METHOD(lldb::SBError, SBFile, Close, ()); | LLDB_REGISTER_METHOD(lldb::SBError, SBFile, Close, ()); | ||||
} | } | ||||
} // namespace repro | } // namespace repro | ||||
} // namespace lldb_private | } // namespace lldb_private |