warnings: Fix a bunch of -Wreorder problems.
git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@143381 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/source/Commands/CommandObjectTarget.cpp b/source/Commands/CommandObjectTarget.cpp
index 09bb205..8b1e12b 100644
--- a/source/Commands/CommandObjectTarget.cpp
+++ b/source/Commands/CommandObjectTarget.cpp
@@ -2618,8 +2618,8 @@
CommandOptions (CommandInterpreter &interpreter) :
Options(interpreter),
- m_use_global_module_list (false),
m_format_array(),
+ m_use_global_module_list (false),
m_module_addr (LLDB_INVALID_ADDRESS)
{
}
diff --git a/source/Core/RegularExpression.cpp b/source/Core/RegularExpression.cpp
index c3953aa..8099cd1 100644
--- a/source/Core/RegularExpression.cpp
+++ b/source/Core/RegularExpression.cpp
@@ -32,8 +32,8 @@
RegularExpression::RegularExpression(const char* re, int flags) :
m_re(),
m_comp_err (1),
- m_compile_flags(flags),
- m_preg()
+ m_preg(),
+ m_compile_flags(flags)
{
memset(&m_preg,0,sizeof(m_preg));
Compile(re);
@@ -46,8 +46,8 @@
RegularExpression::RegularExpression(const char* re) :
m_re(),
m_comp_err (1),
- m_compile_flags(REG_EXTENDED),
- m_preg()
+ m_preg(),
+ m_compile_flags(REG_EXTENDED)
{
memset(&m_preg,0,sizeof(m_preg));
Compile(re);
diff --git a/source/Core/ValueObject.cpp b/source/Core/ValueObject.cpp
index c6924c3..3d48bd5 100644
--- a/source/Core/ValueObject.cpp
+++ b/source/Core/ValueObject.cpp
@@ -85,6 +85,7 @@
m_last_value_format(),
m_last_synthetic_filter(),
m_user_id_of_forced_summary(),
+ m_address_type_of_ptr_or_ref_children(eAddressTypeInvalid),
m_value_is_valid (false),
m_value_did_change (false),
m_children_count_valid (false),
@@ -94,7 +95,6 @@
m_is_bitfield_for_scalar(false),
m_is_expression_path_child(false),
m_is_child_at_offset(false),
- m_address_type_of_ptr_or_ref_children(eAddressTypeInvalid),
m_trying_summary_already(false)
{
m_manager->ManageObject(this);
@@ -131,6 +131,7 @@
m_last_value_format(),
m_last_synthetic_filter(),
m_user_id_of_forced_summary(),
+ m_address_type_of_ptr_or_ref_children(child_ptr_or_ref_addr_type),
m_value_is_valid (false),
m_value_did_change (false),
m_children_count_valid (false),
@@ -140,7 +141,6 @@
m_is_bitfield_for_scalar(false),
m_is_expression_path_child(false),
m_is_child_at_offset(false),
- m_address_type_of_ptr_or_ref_children(child_ptr_or_ref_addr_type),
m_trying_summary_already(false)
{
m_manager = new ValueObjectManager();
diff --git a/source/Expression/ASTResultSynthesizer.cpp b/source/Expression/ASTResultSynthesizer.cpp
index e78f09d..cb832fa 100644
--- a/source/Expression/ASTResultSynthesizer.cpp
+++ b/source/Expression/ASTResultSynthesizer.cpp
@@ -34,10 +34,10 @@
m_ast_context (NULL),
m_passthrough (passthrough),
m_passthrough_sema (NULL),
- m_sema (NULL),
- m_desired_type (desired_type),
m_scratch_ast_context (scratch_ast_context),
- m_persistent_vars (persistent_vars)
+ m_persistent_vars (persistent_vars),
+ m_sema (NULL),
+ m_desired_type (desired_type)
{
if (!m_passthrough)
return;
diff --git a/source/Expression/ClangUserExpression.cpp b/source/Expression/ClangUserExpression.cpp
index 7521bcb..8261099 100644
--- a/source/Expression/ClangUserExpression.cpp
+++ b/source/Expression/ClangUserExpression.cpp
@@ -54,9 +54,9 @@
m_objectivec (false),
m_needs_object_ptr (false),
m_const_object (false),
+ m_target (NULL),
m_evaluated_statically (false),
- m_const_result (),
- m_target (NULL)
+ m_const_result ()
{
}
diff --git a/source/Expression/IRInterpreter.cpp b/source/Expression/IRInterpreter.cpp
index 97130d1..5bb59a6 100644
--- a/source/Expression/IRInterpreter.cpp
+++ b/source/Expression/IRInterpreter.cpp
@@ -419,8 +419,8 @@
InterpreterStackFrame (TargetData &target_data,
Memory &memory,
lldb_private::ClangExpressionDeclMap &decl_map) :
- m_target_data (target_data),
m_memory (memory),
+ m_target_data (target_data),
m_decl_map (decl_map)
{
m_byte_order = (target_data.isLittleEndian() ? lldb::eByteOrderLittle : lldb::eByteOrderBig);
diff --git a/source/Plugins/Disassembler/llvm/DisassemblerLLVM.cpp b/source/Plugins/Disassembler/llvm/DisassemblerLLVM.cpp
index 27b4231..4871c79 100644
--- a/source/Plugins/Disassembler/llvm/DisassemblerLLVM.cpp
+++ b/source/Plugins/Disassembler/llvm/DisassemblerLLVM.cpp
@@ -80,8 +80,8 @@
llvm::Triple::ArchType arch_type) :
Instruction (addr, addr_class),
m_disassembler (disassembler),
- m_arch_type (arch_type),
- m_inst (NULL)
+ m_inst (NULL),
+ m_arch_type (arch_type)
{
}
diff --git a/source/Plugins/DynamicLoader/Darwin-Kernel/DynamicLoaderDarwinKernel.cpp b/source/Plugins/DynamicLoader/Darwin-Kernel/DynamicLoaderDarwinKernel.cpp
index 88b29e1..0dbad50 100644
--- a/source/Plugins/DynamicLoader/Darwin-Kernel/DynamicLoaderDarwinKernel.cpp
+++ b/source/Plugins/DynamicLoader/Darwin-Kernel/DynamicLoaderDarwinKernel.cpp
@@ -94,9 +94,9 @@
m_kext_summary_header_ptr_addr (),
m_kext_summary_header_addr (),
m_kext_summary_header (),
- m_break_id (LLDB_INVALID_BREAK_ID),
m_kext_summaries(),
- m_mutex(Mutex::eMutexTypeRecursive)
+ m_mutex(Mutex::eMutexTypeRecursive),
+ m_break_id (LLDB_INVALID_BREAK_ID)
{
}