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

Raul Tambre via lldb-commits lldb-commits at lists.llvm.org
Tue Oct 21 09:02:28 PDT 2025


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

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

Fixes: 47b9aadb3215e914119d0c45827ea58cb7499204

>From 39771d28f98a7fb43cd5b25ce6c5867af6722aea Mon Sep 17 00:00:00 2001
From: Raul Tambre <raul at tambre.ee>
Date: Tue, 21 Oct 2025 16:16:58 +0300
Subject: [PATCH] [NFCI][lldb] Omit redundant member initializer list

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

Fixes: 47b9aadb3215e914119d0c45827ea58cb7499204
---
 lldb/include/lldb/Target/Process.h | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

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());



More information about the lldb-commits mailing list