[Lldb-commits] [lldb] r189675 - Moving "using namespace" statements out of header files.

Ashok Thirumurthi ashok.thirumurthi at intel.com
Fri Aug 30 07:58:00 PDT 2013


Author: athirumu
Date: Fri Aug 30 09:58:00 2013
New Revision: 189675

URL: http://llvm.org/viewvc/llvm-project?rev=189675&view=rev
Log:
Moving "using namespace" statements out of header files.

Modified:
    lldb/trunk/source/Plugins/Process/elf-core/RegisterContextCoreFreeBSD_x86_64.cpp
    lldb/trunk/source/Plugins/Process/elf-core/RegisterContextCoreFreeBSD_x86_64.h
    lldb/trunk/source/Plugins/Process/elf-core/RegisterContextCoreLinux_x86_64.cpp
    lldb/trunk/source/Plugins/Process/elf-core/RegisterContextCoreLinux_x86_64.h

Modified: lldb/trunk/source/Plugins/Process/elf-core/RegisterContextCoreFreeBSD_x86_64.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/Process/elf-core/RegisterContextCoreFreeBSD_x86_64.cpp?rev=189675&r1=189674&r2=189675&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/Process/elf-core/RegisterContextCoreFreeBSD_x86_64.cpp (original)
+++ lldb/trunk/source/Plugins/Process/elf-core/RegisterContextCoreFreeBSD_x86_64.cpp Fri Aug 30 09:58:00 2013
@@ -12,6 +12,8 @@
 #include "lldb/Target/Thread.h"
 #include "RegisterContextCoreFreeBSD_x86_64.h"
 
+using namespace lldb_private;
+
 RegisterContextCoreFreeBSD_x86_64::RegisterContextCoreFreeBSD_x86_64(Thread &thread,
                         const DataExtractor &gpregset, const DataExtractor &fpregset)
     : RegisterContextFreeBSD_x86_64(thread, 0)

Modified: lldb/trunk/source/Plugins/Process/elf-core/RegisterContextCoreFreeBSD_x86_64.h
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/Process/elf-core/RegisterContextCoreFreeBSD_x86_64.h?rev=189675&r1=189674&r2=189675&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/Process/elf-core/RegisterContextCoreFreeBSD_x86_64.h (original)
+++ lldb/trunk/source/Plugins/Process/elf-core/RegisterContextCoreFreeBSD_x86_64.h Fri Aug 30 09:58:00 2013
@@ -12,24 +12,22 @@
 
 #include "Plugins/Process/POSIX/RegisterContextFreeBSD_x86_64.h"
 
-using namespace lldb_private;
-
 class RegisterContextCoreFreeBSD_x86_64: public RegisterContextFreeBSD_x86_64
 {
 public:
-    RegisterContextCoreFreeBSD_x86_64 (Thread &thread, const DataExtractor &gpregset,
-                                       const DataExtractor &fpregset);
+    RegisterContextCoreFreeBSD_x86_64 (lldb_private::Thread &thread, const lldb_private::DataExtractor &gpregset,
+                                       const lldb_private::DataExtractor &fpregset);
 
     ~RegisterContextCoreFreeBSD_x86_64();
 
     virtual bool
-    ReadRegister(const RegisterInfo *reg_info, RegisterValue &value);
+    ReadRegister(const lldb_private::RegisterInfo *reg_info, lldb_private::RegisterValue &value);
 
     bool
     ReadAllRegisterValues(lldb::DataBufferSP &data_sp);
 
     virtual bool
-    WriteRegister(const RegisterInfo *reg_info, const RegisterValue &value);
+    WriteRegister(const lldb_private::RegisterInfo *reg_info, const lldb_private::RegisterValue &value);
 
     bool
     WriteAllRegisterValues(const lldb::DataBufferSP &data_sp);

Modified: lldb/trunk/source/Plugins/Process/elf-core/RegisterContextCoreLinux_x86_64.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/Process/elf-core/RegisterContextCoreLinux_x86_64.cpp?rev=189675&r1=189674&r2=189675&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/Process/elf-core/RegisterContextCoreLinux_x86_64.cpp (original)
+++ lldb/trunk/source/Plugins/Process/elf-core/RegisterContextCoreLinux_x86_64.cpp Fri Aug 30 09:58:00 2013
@@ -12,6 +12,8 @@
 #include "lldb/Target/Thread.h"
 #include "RegisterContextCoreLinux_x86_64.h"
 
+using namespace lldb_private;
+
 RegisterContextCoreLinux_x86_64::RegisterContextCoreLinux_x86_64(Thread &thread,
                                                 const DataExtractor &gpregset,
                                                 const DataExtractor &fpregset)

Modified: lldb/trunk/source/Plugins/Process/elf-core/RegisterContextCoreLinux_x86_64.h
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/Process/elf-core/RegisterContextCoreLinux_x86_64.h?rev=189675&r1=189674&r2=189675&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/Process/elf-core/RegisterContextCoreLinux_x86_64.h (original)
+++ lldb/trunk/source/Plugins/Process/elf-core/RegisterContextCoreLinux_x86_64.h Fri Aug 30 09:58:00 2013
@@ -12,24 +12,22 @@
 
 #include "Plugins/Process/POSIX/RegisterContextLinux_x86_64.h"
 
-using namespace lldb_private;
-
 class RegisterContextCoreLinux_x86_64: public RegisterContextLinux_x86_64
 {
 public:
-    RegisterContextCoreLinux_x86_64 (Thread &thread, const DataExtractor &gpregset,
-                                     const DataExtractor &fpregset);
+    RegisterContextCoreLinux_x86_64 (lldb_private::Thread &thread, const lldb_private::DataExtractor &gpregset,
+                                     const lldb_private::DataExtractor &fpregset);
 
     ~RegisterContextCoreLinux_x86_64();
 
     virtual bool
-    ReadRegister(const RegisterInfo *reg_info, RegisterValue &value);
+    ReadRegister(const lldb_private::RegisterInfo *reg_info, lldb_private::RegisterValue &value);
 
     bool
     ReadAllRegisterValues(lldb::DataBufferSP &data_sp);
 
     virtual bool
-    WriteRegister(const RegisterInfo *reg_info, const RegisterValue &value);
+    WriteRegister(const lldb_private::RegisterInfo *reg_info, const lldb_private::RegisterValue &value);
 
     bool
     WriteAllRegisterValues(const lldb::DataBufferSP &data_sp);





More information about the lldb-commits mailing list