[Lldb-commits] [lldb] r217653 - Fix the ctor ivar initialization formatting for Debugger,

Jason Molenda jmolenda at apple.com
Thu Sep 11 18:50:46 PDT 2014


Author: jmolenda
Date: Thu Sep 11 20:50:46 2014
New Revision: 217653

URL: http://llvm.org/viewvc/llvm-project?rev=217653&view=rev
Log:
Fix the ctor ivar initialization formatting for Debugger,
TypeValidatorImpl, FileAction, and ProcessLaunchInfo to match the
lldb coding convention.


Modified:
    lldb/trunk/source/Core/Debugger.cpp
    lldb/trunk/source/DataFormatters/TypeValidator.cpp
    lldb/trunk/source/Target/FileAction.cpp
    lldb/trunk/source/Target/ProcessLaunchInfo.cpp

Modified: lldb/trunk/source/Core/Debugger.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Core/Debugger.cpp?rev=217653&r1=217652&r2=217653&view=diff
==============================================================================
--- lldb/trunk/source/Core/Debugger.cpp (original)
+++ lldb/trunk/source/Core/Debugger.cpp Thu Sep 11 20:50:46 2014
@@ -621,22 +621,22 @@ Debugger::FindTargetWithProcess (Process
     return target_sp;
 }
 
-Debugger::Debugger(lldb::LogOutputCallback log_callback, void *baton)
-    : UserID(g_unique_id++)
-    , Properties(OptionValuePropertiesSP(new OptionValueProperties()))
-    , m_input_file_sp(new StreamFile(stdin, false))
-    , m_output_file_sp(new StreamFile(stdout, false))
-    , m_error_file_sp(new StreamFile(stderr, false))
-    , m_terminal_state()
-    , m_target_list(*this)
-    , m_platform_list()
-    , m_listener("lldb.Debugger")
-    , m_source_manager_ap()
-    , m_source_file_cache()
-    , m_command_interpreter_ap(new CommandInterpreter(*this, eScriptLanguageDefault, false))
-    , m_input_reader_stack()
-    , m_instance_name()
-    , m_loaded_plugins()
+Debugger::Debugger(lldb::LogOutputCallback log_callback, void *baton) :
+    UserID(g_unique_id++),
+    Properties(OptionValuePropertiesSP(new OptionValueProperties())),
+    m_input_file_sp(new StreamFile(stdin, false)),
+    m_output_file_sp(new StreamFile(stdout, false)),
+    m_error_file_sp(new StreamFile(stderr, false)),
+    m_terminal_state(),
+    m_target_list(*this),
+    m_platform_list(),
+    m_listener("lldb.Debugger"),
+    m_source_manager_ap(),
+    m_source_file_cache(),
+    m_command_interpreter_ap(new CommandInterpreter(*this, eScriptLanguageDefault, false)),
+    m_input_reader_stack(),
+    m_instance_name(),
+    m_loaded_plugins()
 {
     char instance_cstr[256];
     snprintf(instance_cstr, sizeof(instance_cstr), "debugger_%d", (int)GetID());

Modified: lldb/trunk/source/DataFormatters/TypeValidator.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/DataFormatters/TypeValidator.cpp?rev=217653&r1=217652&r2=217653&view=diff
==============================================================================
--- lldb/trunk/source/DataFormatters/TypeValidator.cpp (original)
+++ lldb/trunk/source/DataFormatters/TypeValidator.cpp Thu Sep 11 20:50:46 2014
@@ -20,9 +20,9 @@
 using namespace lldb;
 using namespace lldb_private;
 
-TypeValidatorImpl::TypeValidatorImpl(const Flags &flags)
-    : m_flags(flags)
-    , m_my_revision(0)
+TypeValidatorImpl::TypeValidatorImpl(const Flags &flags) :
+    m_flags(flags),
+    m_my_revision(0)
 {
 }
 

Modified: lldb/trunk/source/Target/FileAction.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Target/FileAction.cpp?rev=217653&r1=217652&r2=217653&view=diff
==============================================================================
--- lldb/trunk/source/Target/FileAction.cpp (original)
+++ lldb/trunk/source/Target/FileAction.cpp Thu Sep 11 20:50:46 2014
@@ -21,11 +21,11 @@ using namespace lldb_private;
 // FileAction member functions
 //----------------------------------------------------------------------------
 
-FileAction::FileAction()
-    : m_action(eFileActionNone)
-    , m_fd(-1)
-    , m_arg(-1)
-    , m_path()
+FileAction::FileAction() : 
+    m_action(eFileActionNone),
+    m_fd(-1),
+    m_arg(-1),
+    m_path()
 {
 }
 

Modified: lldb/trunk/source/Target/ProcessLaunchInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Target/ProcessLaunchInfo.cpp?rev=217653&r1=217652&r2=217653&view=diff
==============================================================================
--- lldb/trunk/source/Target/ProcessLaunchInfo.cpp (original)
+++ lldb/trunk/source/Target/ProcessLaunchInfo.cpp Thu Sep 11 20:50:46 2014
@@ -41,19 +41,19 @@ ProcessLaunchInfo::ProcessLaunchInfo ()
 }
 
 ProcessLaunchInfo::ProcessLaunchInfo(const char *stdin_path, const char *stdout_path, const char *stderr_path,
-                                     const char *working_directory, uint32_t launch_flags)
-    : ProcessInfo()
-    , m_working_dir()
-    , m_plugin_name()
-    , m_shell()
-    , m_flags(launch_flags)
-    , m_file_actions()
-    , m_pty()
-    , m_resume_count(0)
-    , m_monitor_callback(NULL)
-    , m_monitor_callback_baton(NULL)
-    , m_monitor_signals(false)
-    , m_hijack_listener_sp()
+                                     const char *working_directory, uint32_t launch_flags) :
+    ProcessInfo(),
+    m_working_dir(),
+    m_plugin_name(),
+    m_shell(),
+    m_flags(launch_flags),
+    m_file_actions(),
+    m_pty(),
+    m_resume_count(0),
+    m_monitor_callback(NULL),
+    m_monitor_callback_baton(NULL),
+    m_monitor_signals(false),
+    m_hijack_listener_sp()
 {
     if (stdin_path)
     {





More information about the lldb-commits mailing list