Skip to content

Commit cd9ce9e

Browse files
akashagrwlAkash Agrawal
authored andcommitted
[LLDB] [NFC] - Remove duplicate #include headers from the files of lldb dir & few other files (llvm#141478)
A few files of lldb dir & few other files had duplicate headers included. This patch removes those redundancies. --------- Co-authored-by: Akash Agrawal <akashag@qti.qualcomm.com>
1 parent b082523 commit cd9ce9e

File tree

13 files changed

+1
-17
lines changed

13 files changed

+1
-17
lines changed

lldb/source/API/SBInstruction.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
#include "lldb/API/SBFrame.h"
1414
#include "lldb/API/SBFile.h"
1515

16-
#include "lldb/API/SBInstruction.h"
1716
#include "lldb/API/SBStream.h"
1817
#include "lldb/API/SBTarget.h"
1918
#include "lldb/Core/Disassembler.h"

lldb/source/API/SBPlatform.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
#include "lldb/API/SBFileSpec.h"
1414
#include "lldb/API/SBLaunchInfo.h"
1515
#include "lldb/API/SBModuleSpec.h"
16-
#include "lldb/API/SBPlatform.h"
1716
#include "lldb/API/SBProcessInfoList.h"
1817
#include "lldb/API/SBTarget.h"
1918
#include "lldb/API/SBUnixSignals.h"

lldb/source/Core/Telemetry.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
//===----------------------------------------------------------------------===//
88
#include "lldb/Core/Telemetry.h"
99
#include "lldb/Core/Debugger.h"
10-
#include "lldb/Core/Telemetry.h"
1110
#include "lldb/Utility/LLDBLog.h"
1211
#include "lldb/Utility/Log.h"
1312
#include "lldb/Utility/UUID.h"

lldb/source/Interpreter/CommandObject.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232
#include "lldb/Target/Language.h"
3333

3434
#include "lldb/Interpreter/CommandInterpreter.h"
35-
#include "lldb/Interpreter/CommandOptionArgumentTable.h"
3635
#include "lldb/Interpreter/CommandReturnObject.h"
3736

3837
using namespace lldb;

lldb/source/Plugins/DynamicLoader/Hexagon-DYLD/HexagonDYLDRendezvous.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,14 @@
77
//===----------------------------------------------------------------------===//
88

99
#include "lldb/Core/Module.h"
10+
#include "lldb/Symbol/ObjectFile.h"
1011
#include "lldb/Symbol/Symbol.h"
1112
#include "lldb/Symbol/SymbolContext.h"
1213
#include "lldb/Target/Process.h"
1314
#include "lldb/Target/Target.h"
1415
#include "lldb/Utility/Log.h"
1516
#include "lldb/Utility/Status.h"
1617

17-
#include "lldb/Symbol/ObjectFile.h"
18-
#include "lldb/Target/Process.h"
19-
#include "lldb/Target/Target.h"
20-
2118
#include "HexagonDYLDRendezvous.h"
2219

2320
using namespace lldb;

lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionParser.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,8 @@
6161

6262
#include "ASTUtils.h"
6363
#include "ClangASTSource.h"
64-
#include "ClangDiagnostic.h"
6564
#include "ClangExpressionDeclMap.h"
6665
#include "ClangExpressionHelper.h"
67-
#include "ClangExpressionParser.h"
6866
#include "ClangHost.h"
6967
#include "ClangModulesDeclVendor.h"
7068
#include "ClangPersistentVariables.h"

lldb/source/Plugins/Process/FreeBSDKernel/ThreadFreeBSDKernel.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
#include "RegisterContextFreeBSDKernel_arm64.h"
1919
#include "RegisterContextFreeBSDKernel_i386.h"
2020
#include "RegisterContextFreeBSDKernel_x86_64.h"
21-
#include "ThreadFreeBSDKernel.h"
2221

2322
using namespace lldb;
2423
using namespace lldb_private;

lldb/source/Plugins/Process/NetBSD/NativeThreadNetBSD.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
#include <sstream>
2727

2828
// clang-format off
29-
#include <sys/types.h>
3029
#include <sys/sysctl.h>
3130
// clang-format on
3231

lldb/source/Plugins/Process/Windows/Common/ProcessWindows.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
#include "lldb/Host/HostNativeProcessBase.h"
2323
#include "lldb/Host/HostProcess.h"
2424
#include "lldb/Host/windows/HostThreadWindows.h"
25-
#include "lldb/Host/windows/windows.h"
2625
#include "lldb/Symbol/ObjectFile.h"
2726
#include "lldb/Target/DynamicLoader.h"
2827
#include "lldb/Target/MemoryRegionInfo.h"

lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,6 @@
8282

8383
#include <cstdio>
8484

85-
#include <mutex>
8685
#include <optional>
8786

8887
using namespace lldb;

lldb/source/Target/ScriptedThreadPlan.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
#include "lldb/Target/ScriptedThreadPlan.h"
1818
#include "lldb/Target/Target.h"
1919
#include "lldb/Target/Thread.h"
20-
#include "lldb/Target/ThreadPlan.h"
2120
#include "lldb/Utility/LLDBLog.h"
2221
#include "lldb/Utility/Log.h"
2322
#include "lldb/Utility/State.h"

lldb/source/ValueObject/ValueObject.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@
4141
#include "lldb/Utility/Scalar.h"
4242
#include "lldb/Utility/Stream.h"
4343
#include "lldb/Utility/StreamString.h"
44-
#include "lldb/ValueObject/ValueObject.h"
4544
#include "lldb/ValueObject/ValueObjectCast.h"
4645
#include "lldb/ValueObject/ValueObjectChild.h"
4746
#include "lldb/ValueObject/ValueObjectConstResult.h"

lldb/tools/debugserver/source/RNBRemote.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@
3838
#include "DNBThreadResumeActions.h"
3939
#include "JSON.h"
4040
#include "JSONGenerator.h"
41-
#include "JSONGenerator.h"
4241
#include "MacOSX/Genealogy.h"
4342
#include "OsLogger.h"
4443
#include "RNBContext.h"

0 commit comments

Comments
 (0)