From 9ba9dfdd02f04c91db04f553a445d4c00686a8b9 Mon Sep 17 00:00:00 2001 From: Pavel Labath Date: Thu, 11 Aug 2016 14:12:10 +0000 Subject: [PATCH] Make sure files include what they use (part 2/2) This makes lldb still compile on linux after a project-wide clang-format llvm-svn: 278335 --- lldb/source/Plugins/Process/Utility/RegisterContext_x86.h | 3 +++ .../Process/elf-core/RegisterContextPOSIXCore_powerpc.cpp | 5 +++-- .../Process/elf-core/RegisterContextPOSIXCore_powerpc.h | 2 +- .../Process/elf-core/RegisterContextPOSIXCore_s390x.cpp | 5 +++-- .../Process/elf-core/RegisterContextPOSIXCore_s390x.h | 2 +- .../Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp | 1 - .../Plugins/ScriptInterpreter/Python/PythonDataObjects.h | 5 +++-- 7 files changed, 14 insertions(+), 9 deletions(-) diff --git a/lldb/source/Plugins/Process/Utility/RegisterContext_x86.h b/lldb/source/Plugins/Process/Utility/RegisterContext_x86.h index 252f1253a086..7b4fb85f7c2e 100644 --- a/lldb/source/Plugins/Process/Utility/RegisterContext_x86.h +++ b/lldb/source/Plugins/Process/Utility/RegisterContext_x86.h @@ -10,6 +10,9 @@ #ifndef liblldb_RegisterContext_x86_H_ #define liblldb_RegisterContext_x86_H_ +#include +#include + //--------------------------------------------------------------------------- // i386 ehframe, dwarf regnums //--------------------------------------------------------------------------- diff --git a/lldb/source/Plugins/Process/elf-core/RegisterContextPOSIXCore_powerpc.cpp b/lldb/source/Plugins/Process/elf-core/RegisterContextPOSIXCore_powerpc.cpp index 9d8c97849ff8..741d7742e756 100644 --- a/lldb/source/Plugins/Process/elf-core/RegisterContextPOSIXCore_powerpc.cpp +++ b/lldb/source/Plugins/Process/elf-core/RegisterContextPOSIXCore_powerpc.cpp @@ -7,10 +7,11 @@ // //===----------------------------------------------------------------------===// -#include "lldb/Core/DataExtractor.h" +#include "RegisterContextPOSIXCore_powerpc.h" + +#include "lldb/Core/DataBufferHeap.h" #include "lldb/Core/RegisterValue.h" #include "lldb/Target/Thread.h" -#include "RegisterContextPOSIXCore_powerpc.h" using namespace lldb_private; diff --git a/lldb/source/Plugins/Process/elf-core/RegisterContextPOSIXCore_powerpc.h b/lldb/source/Plugins/Process/elf-core/RegisterContextPOSIXCore_powerpc.h index 0f587fd1459c..05b68a17ac71 100644 --- a/lldb/source/Plugins/Process/elf-core/RegisterContextPOSIXCore_powerpc.h +++ b/lldb/source/Plugins/Process/elf-core/RegisterContextPOSIXCore_powerpc.h @@ -14,8 +14,8 @@ // C++ Includes // Other libraries and framework includes // Project includes -#include "lldb/Core/DataBufferHeap.h" #include "Plugins/Process/Utility/RegisterContextPOSIX_powerpc.h" +#include "lldb/Core/DataExtractor.h" class RegisterContextCorePOSIX_powerpc : public RegisterContextPOSIX_powerpc diff --git a/lldb/source/Plugins/Process/elf-core/RegisterContextPOSIXCore_s390x.cpp b/lldb/source/Plugins/Process/elf-core/RegisterContextPOSIXCore_s390x.cpp index d2f0a8dd3671..2371c029d898 100644 --- a/lldb/source/Plugins/Process/elf-core/RegisterContextPOSIXCore_s390x.cpp +++ b/lldb/source/Plugins/Process/elf-core/RegisterContextPOSIXCore_s390x.cpp @@ -7,10 +7,11 @@ // //===----------------------------------------------------------------------===// -#include "lldb/Core/DataExtractor.h" +#include "RegisterContextPOSIXCore_s390x.h" + +#include "lldb/Core/DataBufferHeap.h" #include "lldb/Core/RegisterValue.h" #include "lldb/Target/Thread.h" -#include "RegisterContextPOSIXCore_s390x.h" using namespace lldb_private; diff --git a/lldb/source/Plugins/Process/elf-core/RegisterContextPOSIXCore_s390x.h b/lldb/source/Plugins/Process/elf-core/RegisterContextPOSIXCore_s390x.h index 8bb6fe1771ef..a9bdff6356eb 100644 --- a/lldb/source/Plugins/Process/elf-core/RegisterContextPOSIXCore_s390x.h +++ b/lldb/source/Plugins/Process/elf-core/RegisterContextPOSIXCore_s390x.h @@ -14,8 +14,8 @@ // C++ Includes // Other libraries and framework includes // Project includes -#include "lldb/Core/DataBufferHeap.h" #include "Plugins/Process/Utility/RegisterContextPOSIX_s390x.h" +#include "lldb/Core/DataExtractor.h" class RegisterContextCorePOSIX_s390x : public RegisterContextPOSIX_s390x { diff --git a/lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp b/lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp index 2bc75150b4d4..6ea4c6869c97 100644 --- a/lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp +++ b/lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp @@ -13,7 +13,6 @@ #else -#include "lldb-python.h" #include "PythonDataObjects.h" #include "ScriptInterpreterPython.h" diff --git a/lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.h b/lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.h index fd77a34750f7..16e106d2d23a 100644 --- a/lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.h +++ b/lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.h @@ -16,12 +16,13 @@ // C++ Includes // Other libraries and framework includes // Project includes -#include "lldb/lldb-defines.h" +#include "lldb-python.h" #include "lldb/Core/ConstString.h" -#include "lldb/Core/StructuredData.h" #include "lldb/Core/Flags.h" +#include "lldb/Core/StructuredData.h" #include "lldb/Host/File.h" #include "lldb/Interpreter/OptionValue.h" +#include "lldb/lldb-defines.h" #include "llvm/ADT/ArrayRef.h"