diff options
Diffstat (limited to 'lldb/source/API/SBFileSpec.cpp')
-rw-r--r-- | lldb/source/API/SBFileSpec.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lldb/source/API/SBFileSpec.cpp b/lldb/source/API/SBFileSpec.cpp index 2e7eba42bc90..7bfb665df4fb 100644 --- a/lldb/source/API/SBFileSpec.cpp +++ b/lldb/source/API/SBFileSpec.cpp @@ -1,4 +1,4 @@ -//===-- SBFileSpec.cpp ------------------------------------------*- C++ -*-===// +//===-- SBFileSpec.cpp ----------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. @@ -51,7 +51,7 @@ SBFileSpec::SBFileSpec(const char *path, bool resolve) FileSystem::Instance().Resolve(*m_opaque_up); } -SBFileSpec::~SBFileSpec() {} +SBFileSpec::~SBFileSpec() = default; const SBFileSpec &SBFileSpec::operator=(const SBFileSpec &rhs) { LLDB_RECORD_METHOD(const lldb::SBFileSpec &, @@ -143,8 +143,8 @@ void SBFileSpec::SetDirectory(const char *directory) { } uint32_t SBFileSpec::GetPath(char *dst_path, size_t dst_len) const { - LLDB_RECORD_DUMMY(uint32_t, SBFileSpec, GetPath, (char *, size_t), - dst_path, dst_len); + LLDB_RECORD_CHAR_PTR_METHOD_CONST(uint32_t, SBFileSpec, GetPath, + (char *, size_t), dst_path, "", dst_len); uint32_t result = m_opaque_up->GetPath(dst_path, dst_len); @@ -213,10 +213,10 @@ void RegisterMethods<SBFileSpec>(Registry &R) { LLDB_REGISTER_METHOD_CONST(const char *, SBFileSpec, GetDirectory, ()); LLDB_REGISTER_METHOD(void, SBFileSpec, SetFilename, (const char *)); LLDB_REGISTER_METHOD(void, SBFileSpec, SetDirectory, (const char *)); - LLDB_REGISTER_METHOD_CONST(uint32_t, SBFileSpec, GetPath, (char *, size_t)); LLDB_REGISTER_METHOD_CONST(bool, SBFileSpec, GetDescription, (lldb::SBStream &)); LLDB_REGISTER_METHOD(void, SBFileSpec, AppendPathComponent, (const char *)); + LLDB_REGISTER_CHAR_PTR_METHOD_CONST(uint32_t, SBFileSpec, GetPath); } } |