[Lldb-commits] [lldb] [lldb] Add ability to rate-limit progress reports (PR #119377)
via lldb-commits
lldb-commits at lists.llvm.org
Tue Dec 10 05:37:48 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 ce7771902dc50d900de639d499a60486b83f70e0 a5aced42bb0742d44f5fdae51b77c291c95da340 --extensions cpp,h -- lldb/include/lldb/Core/Progress.h lldb/source/Core/Progress.cpp lldb/source/Plugins/SymbolFile/DWARF/ManualDWARFIndex.cpp lldb/unittests/Core/ProgressReportTest.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/lldb/source/Core/Progress.cpp b/lldb/source/Core/Progress.cpp
index 14b05a3d96..ed8dfb8563 100644
--- a/lldb/source/Core/Progress.cpp
+++ b/lldb/source/Core/Progress.cpp
@@ -89,7 +89,6 @@ void Progress::Increment(uint64_t amount,
std::memory_order_relaxed));
}
-
std::lock_guard<std::mutex> guard(m_mutex);
if (updated_detail)
m_details = std::move(updated_detail.value());
diff --git a/lldb/unittests/Core/ProgressReportTest.cpp b/lldb/unittests/Core/ProgressReportTest.cpp
index e99b1b84a2..7e745c1e9c 100644
--- a/lldb/unittests/Core/ProgressReportTest.cpp
+++ b/lldb/unittests/Core/ProgressReportTest.cpp
@@ -313,7 +313,6 @@ TEST_F(ProgressReportTest, TestMinimumReportTime) {
ASSERT_FALSE(listener_sp->GetEvent(event_sp, TIMEOUT));
}
-
TEST_F(ProgressReportTest, TestProgressManager) {
ListenerSP listener_sp =
CreateListenerFor(lldb::eBroadcastBitProgressCategory);
``````````
</details>
https://github.com/llvm/llvm-project/pull/119377
More information about the lldb-commits
mailing list