[Lldb-commits] [lldb] Report only loaded debug info in statistics dump (PR #81706)

via lldb-commits lldb-commits at lists.llvm.org
Tue Feb 13 21:46:42 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 61c83e9491b2be71a54b255cdb11f65365245953 497b0a76501923afc169922c3aab9e92fb00c511 -- lldb/include/lldb/API/SBStatisticsOptions.h lldb/include/lldb/Symbol/SymbolFile.h lldb/include/lldb/Symbol/SymbolFileOnDemand.h lldb/include/lldb/Target/Statistics.h lldb/source/API/SBStatisticsOptions.cpp lldb/source/Commands/CommandObjectStats.cpp lldb/source/Plugins/SymbolFile/Breakpad/SymbolFileBreakpad.cpp lldb/source/Plugins/SymbolFile/Breakpad/SymbolFileBreakpad.h lldb/source/Plugins/SymbolFile/DWARF/DWARFUnit.cpp lldb/source/Plugins/SymbolFile/DWARF/DWARFUnit.h lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.h lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARFDwo.cpp lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARFDwo.h lldb/source/Plugins/SymbolFile/NativePDB/SymbolFileNativePDB.cpp lldb/source/Plugins/SymbolFile/NativePDB/SymbolFileNativePDB.h lldb/source/Symbol/SymbolFile.cpp lldb/source/Symbol/SymbolFileOnDemand.cpp lldb/source/Target/Statistics.cpp
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/lldb/include/lldb/API/SBStatisticsOptions.h b/lldb/include/lldb/API/SBStatisticsOptions.h
index 8244dbcee7..4609801eab 100644
--- a/lldb/include/lldb/API/SBStatisticsOptions.h
+++ b/lldb/include/lldb/API/SBStatisticsOptions.h
@@ -24,7 +24,7 @@ public:
 
   void SetSummaryOnly(bool b);
   bool GetSummaryOnly();
-  
+
   void SetForceLoading(bool b);
   bool GetForceLoading();
 
diff --git a/lldb/source/API/SBStatisticsOptions.cpp b/lldb/source/API/SBStatisticsOptions.cpp
index 1111c5ddb5..a4a1fcb3e0 100644
--- a/lldb/source/API/SBStatisticsOptions.cpp
+++ b/lldb/source/API/SBStatisticsOptions.cpp
@@ -48,7 +48,9 @@ void SBStatisticsOptions::SetForceLoading(bool b) {
   m_opaque_up->force_loading = b;
 }
 
-bool SBStatisticsOptions::GetForceLoading() { return m_opaque_up->force_loading; }
+bool SBStatisticsOptions::GetForceLoading() {
+  return m_opaque_up->force_loading;
+}
 
 const lldb_private::StatisticsOptions &SBStatisticsOptions::ref() const {
   return *m_opaque_up;

``````````

</details>


https://github.com/llvm/llvm-project/pull/81706


More information about the lldb-commits mailing list