[Lldb-commits] [lldb] [lldb][progress][NFC] Add groundwork to keep track of progress reports (PR #81026)
via lldb-commits
lldb-commits at lists.llvm.org
Wed Feb 7 11:01:38 PST 2024
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {clang-format}-->
:warning: C/C++ code formatter, clang-format found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
git-clang-format --diff a8ab8306069e8e53b5148ceec7624d7d36ffb459 d10c1c494972429eb5c42ccb8a1dfcbff5d7bfcd -- lldb/include/lldb/Core/Progress.h lldb/source/Core/Progress.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/lldb/include/lldb/Core/Progress.h b/lldb/include/lldb/Core/Progress.h
index fc921482ee..20a42a101e 100644
--- a/lldb/include/lldb/Core/Progress.h
+++ b/lldb/include/lldb/Core/Progress.h
@@ -76,7 +76,8 @@ public:
/// progress is to be reported only to specific debuggers.
Progress(std::string title, std::string details = {},
std::optional<uint64_t> total = std::nullopt,
- lldb_private::Debugger *debugger = nullptr, bool type = Progress::eProgressLinearReports);
+ lldb_private::Debugger *debugger = nullptr,
+ bool type = Progress::eProgressLinearReports);
/// Destroy the progress object.
///
@@ -105,7 +106,8 @@ private:
void ReportProgress();
static std::atomic<uint64_t> g_id;
static std::atomic<uint64_t> g_refcount;
- /// Map that tracks each progress object and if we've seen its start and stop events
+ /// Map that tracks each progress object and if we've seen its start and stop
+ /// events
static std::unordered_map<std::string, uint64_t> g_map;
/// The title of the progress activity.
std::string m_title;
``````````
</details>
https://github.com/llvm/llvm-project/pull/81026
More information about the lldb-commits
mailing list