Skip to content

Commit 86f4c03

Browse files
committed
Running include-what-you-use on lldb-dap breakpoint implementation files. See https://include-what-you-use.org/
1 parent 608d66a commit 86f4c03

15 files changed

+105
-6
lines changed

lldb/tools/lldb-dap/Breakpoint.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,16 @@
1010

1111
#include "JSONUtils.h"
1212

13+
#include "lldb/API/SBAddress.h"
1314
#include "lldb/API/SBBreakpointLocation.h"
15+
#include "lldb/API/SBLineEntry.h"
16+
1417
#include "llvm/ADT/StringExtras.h"
18+
#include "llvm/Support/JSON.h"
19+
20+
#include <stddef.h>
21+
#include <stdint.h>
22+
#include <string>
1523

1624
using namespace lldb_dap;
1725

lldb/tools/lldb-dap/Breakpoint.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
#define LLDB_TOOLS_LLDB_DAP_BREAKPOINT_H
1111

1212
#include "BreakpointBase.h"
13+
#include "DAPForward.h"
1314

1415
#include "lldb/API/SBBreakpoint.h"
1516

lldb/tools/lldb-dap/BreakpointBase.cpp

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

1111
#include "JSONUtils.h"
1212

13+
#include "llvm/ADT/StringRef.h"
14+
1315
using namespace lldb_dap;
1416

1517
BreakpointBase::BreakpointBase(DAP &d, const llvm::json::Object &obj)

lldb/tools/lldb-dap/BreakpointBase.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111

1212
#include "DAPForward.h"
1313

14-
#include "llvm/Support/JSON.h"
15-
1614
#include <string>
1715

1816
namespace lldb_dap {

lldb/tools/lldb-dap/DAPForward.h

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
#ifndef LLDB_TOOLS_LLDB_DAP_DAPFORWARD_H
1010
#define LLDB_TOOLS_LLDB_DAP_DAPFORWARD_H
1111

12+
// IWYU pragma: begin_exports
13+
1214
namespace lldb_dap {
1315
struct BreakpointBase;
1416
struct ExceptionBreakpoint;
@@ -36,6 +38,7 @@ class SBLanguageRuntime;
3638
class SBLaunchInfo;
3739
class SBLineEntry;
3840
class SBListener;
41+
class SBModule;
3942
class SBProcess;
4043
class SBStream;
4144
class SBStringList;
@@ -45,4 +48,12 @@ class SBValue;
4548
class SBWatchpoint;
4649
} // namespace lldb
4750

51+
namespace llvm {
52+
namespace json {
53+
class Object;
54+
} // namespace json
55+
} // namespace llvm
56+
57+
// IWYU pragma: end_exports
58+
4859
#endif

lldb/tools/lldb-dap/ExceptionBreakpoint.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,11 @@
88

99
#include "ExceptionBreakpoint.h"
1010

11+
#include "BreakpointBase.h"
1112
#include "DAP.h"
1213

14+
#include "lldb/API/SBTarget.h"
15+
1316
namespace lldb_dap {
1417

1518
void ExceptionBreakpoint::SetBreakpoint() {

lldb/tools/lldb-dap/ExceptionBreakpoint.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,10 @@
1212
#include "DAPForward.h"
1313

1414
#include "lldb/API/SBBreakpoint.h"
15+
#include "lldb/lldb-enumerations.h"
1516

1617
#include <string>
18+
#include <utility>
1719

1820
namespace lldb_dap {
1921

lldb/tools/lldb-dap/InstructionBreakpoint.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@
1212
#include "DAP.h"
1313
#include "JSONUtils.h"
1414

15+
#include "lldb/API/SBBreakpoint.h"
16+
#include "lldb/API/SBTarget.h"
17+
18+
#include "llvm/ADT/StringRef.h"
19+
1520
namespace lldb_dap {
1621

1722
// Instruction Breakpoint

lldb/tools/lldb-dap/InstructionBreakpoint.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
#include "Breakpoint.h"
1414
#include "DAPForward.h"
1515

16+
#include "lldb/lldb-defines.h"
1617
#include "lldb/lldb-types.h"
1718

1819
#include <cstdint>

lldb/tools/lldb-dap/JSONUtils.cpp

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,25 +8,53 @@
88

99
#include "JSONUtils.h"
1010

11+
#include "BreakpointBase.h"
1112
#include "DAP.h"
1213
#include "ExceptionBreakpoint.h"
1314
#include "LLDBUtils.h"
1415

16+
#include "lldb/API/SBAddress.h"
17+
#include "lldb/API/SBCompileUnit.h"
1518
#include "lldb/API/SBDeclaration.h"
19+
#include "lldb/API/SBEnvironment.h"
20+
#include "lldb/API/SBError.h"
21+
#include "lldb/API/SBFileSpec.h"
22+
#include "lldb/API/SBFrame.h"
23+
#include "lldb/API/SBFunction.h"
24+
#include "lldb/API/SBLineEntry.h"
25+
#include "lldb/API/SBModule.h"
26+
#include "lldb/API/SBQueue.h"
27+
#include "lldb/API/SBSection.h"
1628
#include "lldb/API/SBStream.h"
1729
#include "lldb/API/SBStringList.h"
1830
#include "lldb/API/SBStructuredData.h"
31+
#include "lldb/API/SBTarget.h"
32+
#include "lldb/API/SBThread.h"
33+
#include "lldb/API/SBType.h"
1934
#include "lldb/API/SBValue.h"
35+
#include "lldb/lldb-defines.h"
36+
#include "lldb/lldb-enumerations.h"
37+
#include "lldb/lldb-types.h"
2038

39+
#include "llvm/ADT/DenseMap.h"
40+
#include "llvm/ADT/StringExtras.h"
2141
#include "llvm/ADT/StringRef.h"
42+
#include "llvm/Support/Compiler.h"
43+
#include "llvm/Support/Format.h"
2244
#include "llvm/Support/FormatVariadic.h"
2345
#include "llvm/Support/Path.h"
2446
#include "llvm/Support/ScopedPrinter.h"
47+
#include "llvm/Support/raw_ostream.h"
2548

49+
#include <chrono>
2650
#include <iomanip>
2751
#include <optional>
2852
#include <sstream>
53+
#include <string>
2954
#include <string.h>
55+
#include <sys/syslimits.h>
56+
#include <utility>
57+
#include <vector>
3058

3159
namespace lldb_dap {
3260

0 commit comments

Comments
 (0)