[Lldb-commits] [lldb] r143381 - in /lldb/trunk: include/lldb/Expression/ClangASTSource.h include/lldb/Expression/ClangExpressionDeclMap.h source/Commands/CommandObjectTarget.cpp source/Core/RegularExpression.cpp source/Core/ValueObject.cpp source/Expression/ASTResultSynthesizer.cpp source/Expression/ClangUserExpression.cpp source/Expression/IRInterpreter.cpp source/Plugins/Disassembler/llvm/DisassemblerLLVM.cpp source/Plugins/DynamicLoader/Darwin-Kernel/DynamicLoaderDarwinKernel.cpp tools/driver/Driver.cpp

Daniel Dunbar daniel at zuster.org
Mon Oct 31 15:50:49 PDT 2011


Author: ddunbar
Date: Mon Oct 31 17:50:49 2011
New Revision: 143381

URL: http://llvm.org/viewvc/llvm-project?rev=143381&view=rev
Log:
warnings: Fix a bunch of -Wreorder problems.

Modified:
    lldb/trunk/include/lldb/Expression/ClangASTSource.h
    lldb/trunk/include/lldb/Expression/ClangExpressionDeclMap.h
    lldb/trunk/source/Commands/CommandObjectTarget.cpp
    lldb/trunk/source/Core/RegularExpression.cpp
    lldb/trunk/source/Core/ValueObject.cpp
    lldb/trunk/source/Expression/ASTResultSynthesizer.cpp
    lldb/trunk/source/Expression/ClangUserExpression.cpp
    lldb/trunk/source/Expression/IRInterpreter.cpp
    lldb/trunk/source/Plugins/Disassembler/llvm/DisassemblerLLVM.cpp
    lldb/trunk/source/Plugins/DynamicLoader/Darwin-Kernel/DynamicLoaderDarwinKernel.cpp
    lldb/trunk/tools/driver/Driver.cpp

Modified: lldb/trunk/include/lldb/Expression/ClangASTSource.h
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/include/lldb/Expression/ClangASTSource.h?rev=143381&r1=143380&r2=143381&view=diff
==============================================================================
--- lldb/trunk/include/lldb/Expression/ClangASTSource.h (original)
+++ lldb/trunk/include/lldb/Expression/ClangASTSource.h Mon Oct 31 17:50:49 2011
@@ -44,11 +44,11 @@
     ///     A reference to the LLDB object that handles entity lookup.
     //------------------------------------------------------------------
 	ClangASTSource (const lldb::TargetSP &target) :
-        m_ast_context (NULL),
-        m_active_lookups (),
         m_import_in_progress (false),
         m_lookups_enabled (false),
-        m_target (target)
+        m_target (target),
+        m_ast_context (NULL),
+        m_active_lookups ()
     {
     }
     

Modified: lldb/trunk/include/lldb/Expression/ClangExpressionDeclMap.h
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/include/lldb/Expression/ClangExpressionDeclMap.h?rev=143381&r1=143380&r2=143381&view=diff
==============================================================================
--- lldb/trunk/include/lldb/Expression/ClangExpressionDeclMap.h (original)
+++ lldb/trunk/include/lldb/Expression/ClangExpressionDeclMap.h Mon Oct 31 17:50:49 2011
@@ -665,11 +665,11 @@
     {
     public:
         ParserVars(ClangExpressionDeclMap &decl_map) :
-            m_decl_map(decl_map),
             m_exe_ctx(NULL),
             m_sym_ctx(),
             m_persistent_vars(NULL),
-            m_enable_lookups(false)
+            m_enable_lookups(false),
+            m_decl_map(decl_map)
         {
         }
         

Modified: lldb/trunk/source/Commands/CommandObjectTarget.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Commands/CommandObjectTarget.cpp?rev=143381&r1=143380&r2=143381&view=diff
==============================================================================
--- lldb/trunk/source/Commands/CommandObjectTarget.cpp (original)
+++ lldb/trunk/source/Commands/CommandObjectTarget.cpp Mon Oct 31 17:50:49 2011
@@ -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)
         {
         }

Modified: lldb/trunk/source/Core/RegularExpression.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Core/RegularExpression.cpp?rev=143381&r1=143380&r2=143381&view=diff
==============================================================================
--- lldb/trunk/source/Core/RegularExpression.cpp (original)
+++ lldb/trunk/source/Core/RegularExpression.cpp Mon Oct 31 17:50:49 2011
@@ -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);

Modified: lldb/trunk/source/Core/ValueObject.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Core/ValueObject.cpp?rev=143381&r1=143380&r2=143381&view=diff
==============================================================================
--- lldb/trunk/source/Core/ValueObject.cpp (original)
+++ lldb/trunk/source/Core/ValueObject.cpp Mon Oct 31 17:50:49 2011
@@ -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();

Modified: lldb/trunk/source/Expression/ASTResultSynthesizer.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Expression/ASTResultSynthesizer.cpp?rev=143381&r1=143380&r2=143381&view=diff
==============================================================================
--- lldb/trunk/source/Expression/ASTResultSynthesizer.cpp (original)
+++ lldb/trunk/source/Expression/ASTResultSynthesizer.cpp Mon Oct 31 17:50:49 2011
@@ -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;

Modified: lldb/trunk/source/Expression/ClangUserExpression.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Expression/ClangUserExpression.cpp?rev=143381&r1=143380&r2=143381&view=diff
==============================================================================
--- lldb/trunk/source/Expression/ClangUserExpression.cpp (original)
+++ lldb/trunk/source/Expression/ClangUserExpression.cpp Mon Oct 31 17:50:49 2011
@@ -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 ()
 {
 }
 

Modified: lldb/trunk/source/Expression/IRInterpreter.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Expression/IRInterpreter.cpp?rev=143381&r1=143380&r2=143381&view=diff
==============================================================================
--- lldb/trunk/source/Expression/IRInterpreter.cpp (original)
+++ lldb/trunk/source/Expression/IRInterpreter.cpp Mon Oct 31 17:50:49 2011
@@ -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);

Modified: lldb/trunk/source/Plugins/Disassembler/llvm/DisassemblerLLVM.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/Disassembler/llvm/DisassemblerLLVM.cpp?rev=143381&r1=143380&r2=143381&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/Disassembler/llvm/DisassemblerLLVM.cpp (original)
+++ lldb/trunk/source/Plugins/Disassembler/llvm/DisassemblerLLVM.cpp Mon Oct 31 17:50:49 2011
@@ -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)
 {
 }
 

Modified: lldb/trunk/source/Plugins/DynamicLoader/Darwin-Kernel/DynamicLoaderDarwinKernel.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/DynamicLoader/Darwin-Kernel/DynamicLoaderDarwinKernel.cpp?rev=143381&r1=143380&r2=143381&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/DynamicLoader/Darwin-Kernel/DynamicLoaderDarwinKernel.cpp (original)
+++ lldb/trunk/source/Plugins/DynamicLoader/Darwin-Kernel/DynamicLoaderDarwinKernel.cpp Mon Oct 31 17:50:49 2011
@@ -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)
 {
 }
 

Modified: lldb/trunk/tools/driver/Driver.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/tools/driver/Driver.cpp?rev=143381&r1=143380&r2=143381&view=diff
==============================================================================
--- lldb/trunk/tools/driver/Driver.cpp (original)
+++ lldb/trunk/tools/driver/Driver.cpp Mon Oct 31 17:50:49 2011
@@ -378,10 +378,10 @@
     m_debug_mode (false),
     m_print_version (false),
     m_print_help (false),
-    m_use_external_editor(false),
     m_wait_for(false),
     m_process_name(),
     m_process_pid(LLDB_INVALID_PROCESS_ID),
+    m_use_external_editor(false),
     m_seen_options()
 {
 }





More information about the lldb-commits mailing list