================ @@ -131,11 +131,48 @@ struct ConstStringStats { }; struct StatisticsOptions { - bool summary_only = false; - bool load_all_debug_info = false; - bool include_targets = true; - bool include_modules = true; - bool include_transcript = true; +public: + void SetSummaryOnly(bool value) { m_summary_only = value; } + bool GetSummaryOnly() const { return m_summary_only.value_or(false); } + + void SetLoadAllDebugInfo(bool value) { m_load_all_debug_info = value; } + bool GetLoadAllDebugInfo() const { + return m_load_all_debug_info.value_or(false); + } + + void SetIncludeTargets(bool value) { m_include_targets = value; } + bool GetIncludeTargets() const { + if (m_include_targets.has_value()) + return m_include_targets.value(); + // `m_include_targets` has no value set, so return a value base on ---------------- hawkinsw wrote:
```suggestion // `m_include_targets` has no value set, so return a value based on ``` https://github.com/llvm/llvm-project/pull/95075 _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits