Skip to content

Commit b36db9a

Browse files
committed
revert extra dap namespace
1 parent 0e668d0 commit b36db9a

File tree

9 files changed

+15
-15
lines changed

9 files changed

+15
-15
lines changed

lldb/tools/lldb-dap/Breakpoint.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@
2525

2626
using namespace lldb_dap;
2727

28-
static std::optional<protocol::dap::PersistenceData>
28+
static std::optional<protocol::PersistenceData>
2929
GetPersistenceDataForSymbol(lldb::SBSymbol &symbol) {
30-
protocol::dap::PersistenceData persistence_data;
30+
protocol::PersistenceData persistence_data;
3131
lldb::SBModule module = symbol.GetStartAddress().GetModule();
3232
if (!module.IsValid())
3333
return std::nullopt;
@@ -105,11 +105,11 @@ protocol::Breakpoint Breakpoint::ToProtocolBreakpoint() {
105105

106106
// Add persistent data so that the breakpoint can be resolved
107107
// in future sessions.
108-
std::optional<protocol::dap::PersistenceData> persistence_data =
108+
std::optional<protocol::PersistenceData> persistence_data =
109109
GetPersistenceDataForSymbol(symbol);
110110
if (persistence_data) {
111111
source->adapterData =
112-
protocol::dap::SourceLLDBData{std::move(persistence_data)};
112+
protocol::SourceLLDBData{std::move(persistence_data)};
113113
}
114114
}
115115
}

lldb/tools/lldb-dap/Handler/ModuleSymbolsRequestHandler.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ ModuleSymbolsRequestHandler::Run(const ModuleSymbolsArguments &args) const {
114114
if (!module_spec.IsValid())
115115
return response;
116116

117-
std::vector<dap::Symbol> &symbols = response.symbols;
117+
std::vector<Symbol> &symbols = response.symbols;
118118
lldb::SBModule module = dap.target.FindModule(module_spec);
119119
if (!module.IsValid())
120120
return llvm::make_error<DAPError>("Module not found");
@@ -125,7 +125,7 @@ ModuleSymbolsRequestHandler::Run(const ModuleSymbolsArguments &args) const {
125125
if (!symbol.IsValid())
126126
continue;
127127

128-
dap::Symbol dap_symbol;
128+
Symbol dap_symbol;
129129
dap_symbol.userId = symbol.GetID();
130130
dap_symbol.type = SymbolTypeToString(symbol.GetType());
131131
dap_symbol.isDebug = symbol.IsDebug();

lldb/tools/lldb-dap/Protocol/DAPTypes.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
using namespace llvm;
44

5-
namespace lldb_dap::protocol::dap {
5+
namespace lldb_dap::protocol {
66

77
bool fromJSON(const llvm::json::Value &Params, PersistenceData &PD,
88
llvm::json::Path P) {
@@ -60,4 +60,4 @@ llvm::json::Value toJSON(const Symbol &DS) {
6060
return result;
6161
}
6262

63-
} // namespace lldb_dap::protocol::dap
63+
} // namespace lldb_dap::protocol

lldb/tools/lldb-dap/Protocol/DAPTypes.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
#include <optional>
2222
#include <string>
2323

24-
namespace lldb_dap::protocol::dap {
24+
namespace lldb_dap::protocol {
2525

2626
/// Data used to help lldb-dap resolve breakpoints persistently across different
2727
/// sessions. This information is especially useful for assembly breakpoints,
@@ -80,6 +80,6 @@ struct Symbol {
8080
bool fromJSON(const llvm::json::Value &, Symbol &, llvm::json::Path);
8181
llvm::json::Value toJSON(const Symbol &);
8282

83-
} // namespace lldb_dap::protocol::dap
83+
} // namespace lldb_dap::protocol
8484

8585
#endif

lldb/tools/lldb-dap/Protocol/ProtocolRequests.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -994,7 +994,7 @@ bool fromJSON(const llvm::json::Value &, ModuleSymbolsArguments &,
994994
/// Response to `getModuleSymbols` request.
995995
struct ModuleSymbolsResponseBody {
996996
/// The symbols for the specified module.
997-
std::vector<dap::Symbol> symbols;
997+
std::vector<Symbol> symbols;
998998
};
999999
llvm::json::Value toJSON(const ModuleSymbolsResponseBody &);
10001000

lldb/tools/lldb-dap/Protocol/ProtocolTypes.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ struct Source {
340340
/// Additional data that a debug adapter might want to loop through the
341341
/// client. The client should leave the data intact and persist it across
342342
/// sessions. The client should not interpret the data.
343-
std::optional<dap::SourceLLDBData> adapterData;
343+
std::optional<SourceLLDBData> adapterData;
344344

345345
// unsupported keys: origin, sources, checksums
346346
};

lldb/tools/lldb-dap/SourceBreakpoint.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ llvm::Error SourceBreakpoint::CreateAssemblyBreakpointWithSourceReference(
120120
}
121121

122122
llvm::Error SourceBreakpoint::CreateAssemblyBreakpointWithPersistenceData(
123-
const protocol::dap::PersistenceData &persistence_data) {
123+
const protocol::PersistenceData &persistence_data) {
124124
lldb::SBFileSpec file_spec(persistence_data.module_path.c_str());
125125
lldb::SBFileSpecList comp_unit_list;
126126
lldb::SBFileSpecList file_spec_list;

lldb/tools/lldb-dap/SourceBreakpoint.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ class SourceBreakpoint : public Breakpoint {
5555
llvm::Error
5656
CreateAssemblyBreakpointWithSourceReference(int64_t source_reference);
5757
llvm::Error CreateAssemblyBreakpointWithPersistenceData(
58-
const protocol::dap::PersistenceData &persistence_data);
58+
const protocol::PersistenceData &persistence_data);
5959

6060
// logMessage part can be either a raw text or an expression.
6161
struct LogMessagePart {

lldb/unittests/DAP/DAPTypesTest.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
using namespace llvm;
1616
using namespace lldb;
1717
using namespace lldb_dap;
18-
using namespace lldb_dap::protocol::dap;
18+
using namespace lldb_dap::protocol;
1919
using lldb_private::roundtripJSON;
2020

2121
TEST(DAPTypesTest, SourceLLDBData) {

0 commit comments

Comments
 (0)