[Lldb-commits] [lldb] [NFCI][lldb] Omit redundant member initializer list (PR #164451)

via lldb-commits lldb-commits at lists.llvm.org
Tue Oct 21 09:06:23 PDT 2025


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-lldb

Author: Raul Tambre (tambry)

<details>
<summary>Changes</summary>

These all have member initializers of the same value so they're redundant.

Fixes: 47b9aadb3215e914119d0c45827ea58cb7499204

---
Full diff: https://github.com/llvm/llvm-project/pull/164451.diff


1 Files Affected:

- (modified) lldb/include/lldb/Target/Process.h (+1-4) 


``````````diff
diff --git a/lldb/include/lldb/Target/Process.h b/lldb/include/lldb/Target/Process.h
index dc75d98acea70..8289eaf3691cc 100644
--- a/lldb/include/lldb/Target/Process.h
+++ b/lldb/include/lldb/Target/Process.h
@@ -127,10 +127,7 @@ class ProcessAttachInfo : public ProcessInstanceInfo {
 public:
   ProcessAttachInfo() = default;
 
-  ProcessAttachInfo(const ProcessLaunchInfo &launch_info)
-      : m_resume_count(0), m_wait_for_launch(false), m_ignore_existing(true),
-        m_continue_once_attached(false), m_detach_on_error(true),
-        m_async(false) {
+  ProcessAttachInfo(const ProcessLaunchInfo &launch_info) {
     ProcessInfo::operator=(launch_info);
     SetProcessPluginName(launch_info.GetProcessPluginName());
     SetResumeCount(launch_info.GetResumeCount());

``````````

</details>


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


More information about the lldb-commits mailing list