Skip to content

Commit

Permalink
Merge commit 'aee4d346f0ad' from swift/release/6.1 into stable/20240723
Browse files Browse the repository at this point in the history
  • Loading branch information
git apple-llvm automerger committed Jan 29, 2025
2 parents d53ecfc + aee4d34 commit 1d8bf9d
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions lldb/include/lldb/API/LLDB.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
#include "lldb/API/SBProcess.h"
#include "lldb/API/SBProcessInfo.h"
#include "lldb/API/SBProcessInfoList.h"
#include "lldb/API/SBProgress.h"
#include "lldb/API/SBQueue.h"
#include "lldb/API/SBQueueItem.h"
#include "lldb/API/SBReproducer.h"
Expand Down
1 change: 1 addition & 0 deletions lldb/include/lldb/API/SBDefines.h
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ class LLDB_API SBPlatformShellCommand;
class LLDB_API SBProcess;
class LLDB_API SBProcessInfo;
class LLDB_API SBProcessInfoList;
class LLDB_API SBProgress;
class LLDB_API SBQueue;
class LLDB_API SBQueueItem;
class LLDB_API SBReplayOptions;
Expand Down
7 changes: 7 additions & 0 deletions lldb/include/lldb/API/SBProgress.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@ class LLDB_API SBProgress {
SBProgress(const char *title, const char *details, uint64_t total_units,
SBDebugger &debugger);

#ifndef SWIG
SBProgress(SBProgress &&rhs);
#endif

~SBProgress();

void Increment(uint64_t amount, const char *description = nullptr);
Expand All @@ -59,6 +63,9 @@ class LLDB_API SBProgress {
lldb_private::Progress &ref() const;

private:
SBProgress(const SBProgress &rhs) = delete;
const SBProgress &operator=(const SBProgress &rhs) = delete;

std::unique_ptr<lldb_private::Progress> m_opaque_up;
}; // SBProgress
} // namespace lldb
Expand Down
3 changes: 3 additions & 0 deletions lldb/source/API/SBProgress.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ SBProgress::SBProgress(const char *title, const char *details,
lldb_private::Progress::Origin::eExternal);
}

SBProgress::SBProgress(SBProgress &&rhs)
: m_opaque_up(std::move(rhs.m_opaque_up)) {}

SBProgress::~SBProgress() = default;

void SBProgress::Increment(uint64_t amount, const char *description) {
Expand Down

0 comments on commit 1d8bf9d

Please sign in to comment.