Skip to content

Commit 4964d57

Browse files
ashgtilabath
andauthored
Apply suggestions from code review
Co-authored-by: Pavel Labath <[email protected]>
1 parent 86f4c03 commit 4964d57

File tree

10 files changed

+3
-23
lines changed

10 files changed

+3
-23
lines changed

lldb/tools/lldb-dap/Breakpoint.cpp

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,14 @@
77
//===----------------------------------------------------------------------===//
88

99
#include "Breakpoint.h"
10-
1110
#include "JSONUtils.h"
12-
1311
#include "lldb/API/SBAddress.h"
1412
#include "lldb/API/SBBreakpointLocation.h"
1513
#include "lldb/API/SBLineEntry.h"
16-
1714
#include "llvm/ADT/StringExtras.h"
1815
#include "llvm/Support/JSON.h"
19-
20-
#include <stddef.h>
21-
#include <stdint.h>
16+
#include <cstddef>
17+
#include <cstdint>
2218
#include <string>
2319

2420
using namespace lldb_dap;

lldb/tools/lldb-dap/Breakpoint.h

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

1212
#include "BreakpointBase.h"
1313
#include "DAPForward.h"
14-
1514
#include "lldb/API/SBBreakpoint.h"
1615

1716
namespace lldb_dap {

lldb/tools/lldb-dap/BreakpointBase.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,7 @@
77
//===----------------------------------------------------------------------===//
88

99
#include "BreakpointBase.h"
10-
1110
#include "JSONUtils.h"
12-
1311
#include "llvm/ADT/StringRef.h"
1412

1513
using namespace lldb_dap;

lldb/tools/lldb-dap/BreakpointBase.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
#define LLDB_TOOLS_LLDB_DAP_BREAKPOINTBASE_H
1111

1212
#include "DAPForward.h"
13-
1413
#include <string>
1514

1615
namespace lldb_dap {

lldb/tools/lldb-dap/ExceptionBreakpoint.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,8 @@
77
//===----------------------------------------------------------------------===//
88

99
#include "ExceptionBreakpoint.h"
10-
1110
#include "BreakpointBase.h"
1211
#include "DAP.h"
13-
1412
#include "lldb/API/SBTarget.h"
1513

1614
namespace lldb_dap {

lldb/tools/lldb-dap/ExceptionBreakpoint.h

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

1212
#include "DAPForward.h"
13-
1413
#include "lldb/API/SBBreakpoint.h"
1514
#include "lldb/lldb-enumerations.h"
16-
1715
#include <string>
1816
#include <utility>
1917

lldb/tools/lldb-dap/FunctionBreakpoint.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
//===----------------------------------------------------------------------===//
88

99
#include "FunctionBreakpoint.h"
10-
1110
#include "DAP.h"
1211
#include "JSONUtils.h"
1312

lldb/tools/lldb-dap/InstructionBreakpoint.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,10 @@
88
//===----------------------------------------------------------------------===//
99

1010
#include "InstructionBreakpoint.h"
11-
1211
#include "DAP.h"
1312
#include "JSONUtils.h"
14-
1513
#include "lldb/API/SBBreakpoint.h"
1614
#include "lldb/API/SBTarget.h"
17-
1815
#include "llvm/ADT/StringRef.h"
1916

2017
namespace lldb_dap {

lldb/tools/lldb-dap/InstructionBreakpoint.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,8 @@
1212

1313
#include "Breakpoint.h"
1414
#include "DAPForward.h"
15-
1615
#include "lldb/lldb-defines.h"
1716
#include "lldb/lldb-types.h"
18-
1917
#include <cstdint>
2018

2119
namespace lldb_dap {
@@ -26,7 +24,7 @@ struct InstructionBreakpoint : public Breakpoint {
2624
lldb::addr_t instructionAddressReference;
2725
int32_t offset;
2826

29-
InstructionBreakpoint(DAP &d)
27+
explicit InstructionBreakpoint(DAP &d)
3028
: Breakpoint(d), instructionAddressReference(LLDB_INVALID_ADDRESS),
3129
offset(0) {}
3230
InstructionBreakpoint(DAP &d, const llvm::json::Object &obj);

lldb/tools/lldb-dap/Watchpoint.h

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

1212
#include "BreakpointBase.h"
1313
#include "DAPForward.h"
14-
1514
#include "lldb/API/SBError.h"
1615
#include "lldb/API/SBWatchpoint.h"
1716
#include "lldb/API/SBWatchpointOptions.h"
1817
#include "lldb/lldb-types.h"
19-
2018
#include <cstddef>
2119

2220
namespace lldb_dap {

0 commit comments

Comments
 (0)