[Lldb-commits] [lldb] Reland "[NFC][lldb] Speed up lookup of shared modules" (229d860) (PR #152607)
via lldb-commits
lldb-commits at lists.llvm.org
Fri Aug 8 10:31:04 PDT 2025
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 HEAD~1 HEAD --extensions cpp -- lldb/source/Core/ModuleList.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/lldb/source/Core/ModuleList.cpp b/lldb/source/Core/ModuleList.cpp
index e507b2e8e..56b2d7a66 100644
--- a/lldb/source/Core/ModuleList.cpp
+++ b/lldb/source/Core/ModuleList.cpp
@@ -967,8 +967,8 @@ private:
remove_count += to_remove.GetSize();
m_list.Remove(to_remove);
}
- // Break when fixed-point is reached.
- } while (previous_remove_count != remove_count);
+ // Break when fixed-point is reached.
+ } while (previous_remove_count != remove_count);
return remove_count;
}
@@ -978,7 +978,7 @@ private:
/// A hash map from a module's filename to all the modules that share that
/// filename, for fast module lookups by name.
llvm::DenseMap<ConstString, llvm::SmallVector<ModuleSP, 1>> m_name_to_modules;
-
+
/// The use count of a module held only by m_list and m_name_to_modules.
static constexpr long kUseCountOrphaned = 2;
};
``````````
</details>
https://github.com/llvm/llvm-project/pull/152607
More information about the lldb-commits
mailing list