Skip to content

Commit 1028ea9

Browse files
committed
[lldb-dap] RequestHandler::getCommand -> RequestHandler::GetCommand (NFC)
Chang the capitalization of getCommand to comply with LLDB's code style.
1 parent 4088557 commit 1028ea9

File tree

2 files changed

+35
-35
lines changed

2 files changed

+35
-35
lines changed

lldb/tools/lldb-dap/DAP.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ struct DAP {
361361

362362
/// Registers a request handler.
363363
template <typename Handler> void RegisterRequest() {
364-
request_handlers[Handler::getCommand()] = std::make_unique<Handler>(*this);
364+
request_handlers[Handler::GetCommand()] = std::make_unique<Handler>(*this);
365365
}
366366

367367
/// Return a key-value list of capabilities.

lldb/tools/lldb-dap/Handler/RequestHandler.h

Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -147,14 +147,14 @@ class RequestHandler : public BaseRequestHandler {
147147
class AttachRequestHandler : public LegacyRequestHandler {
148148
public:
149149
using LegacyRequestHandler::LegacyRequestHandler;
150-
static llvm::StringLiteral getCommand() { return "attach"; }
150+
static llvm::StringLiteral GetCommand() { return "attach"; }
151151
void operator()(const llvm::json::Object &request) const override;
152152
};
153153

154154
class BreakpointLocationsRequestHandler : public LegacyRequestHandler {
155155
public:
156156
using LegacyRequestHandler::LegacyRequestHandler;
157-
static llvm::StringLiteral getCommand() { return "breakpointLocations"; }
157+
static llvm::StringLiteral GetCommand() { return "breakpointLocations"; }
158158
llvm::StringMap<bool> GetCapabilities() const override {
159159
return {{"supportsBreakpointLocationsRequest", true}};
160160
}
@@ -164,7 +164,7 @@ class BreakpointLocationsRequestHandler : public LegacyRequestHandler {
164164
class CompletionsRequestHandler : public LegacyRequestHandler {
165165
public:
166166
using LegacyRequestHandler::LegacyRequestHandler;
167-
static llvm::StringLiteral getCommand() { return "completions"; }
167+
static llvm::StringLiteral GetCommand() { return "completions"; }
168168
llvm::StringMap<bool> GetCapabilities() const override {
169169
return {{"supportsCompletionsRequest", true}};
170170
}
@@ -174,14 +174,14 @@ class CompletionsRequestHandler : public LegacyRequestHandler {
174174
class ContinueRequestHandler : public LegacyRequestHandler {
175175
public:
176176
using LegacyRequestHandler::LegacyRequestHandler;
177-
static llvm::StringLiteral getCommand() { return "continue"; }
177+
static llvm::StringLiteral GetCommand() { return "continue"; }
178178
void operator()(const llvm::json::Object &request) const override;
179179
};
180180

181181
class ConfigurationDoneRequestHandler : public LegacyRequestHandler {
182182
public:
183183
using LegacyRequestHandler::LegacyRequestHandler;
184-
static llvm::StringLiteral getCommand() { return "configurationDone"; }
184+
static llvm::StringLiteral GetCommand() { return "configurationDone"; }
185185
llvm::StringMap<bool> GetCapabilities() const override {
186186
return {{"supportsConfigurationDoneRequest", true}};
187187
}
@@ -193,22 +193,22 @@ class DisconnectRequestHandler
193193
protocol::DisconnectResponse> {
194194
public:
195195
using RequestHandler::RequestHandler;
196-
static llvm::StringLiteral getCommand() { return "disconnect"; }
196+
static llvm::StringLiteral GetCommand() { return "disconnect"; }
197197
llvm::Expected<protocol::DisconnectResponse>
198198
Run(const std::optional<protocol::DisconnectArguments> &args) const override;
199199
};
200200

201201
class EvaluateRequestHandler : public LegacyRequestHandler {
202202
public:
203203
using LegacyRequestHandler::LegacyRequestHandler;
204-
static llvm::StringLiteral getCommand() { return "evaluate"; }
204+
static llvm::StringLiteral GetCommand() { return "evaluate"; }
205205
void operator()(const llvm::json::Object &request) const override;
206206
};
207207

208208
class ExceptionInfoRequestHandler : public LegacyRequestHandler {
209209
public:
210210
using LegacyRequestHandler::LegacyRequestHandler;
211-
static llvm::StringLiteral getCommand() { return "exceptionInfo"; }
211+
static llvm::StringLiteral GetCommand() { return "exceptionInfo"; }
212212
llvm::StringMap<bool> GetCapabilities() const override {
213213
return {{"supportsExceptionInfoRequest", true}};
214214
}
@@ -218,7 +218,7 @@ class ExceptionInfoRequestHandler : public LegacyRequestHandler {
218218
class InitializeRequestHandler : public LegacyRequestHandler {
219219
public:
220220
using LegacyRequestHandler::LegacyRequestHandler;
221-
static llvm::StringLiteral getCommand() { return "initialize"; }
221+
static llvm::StringLiteral GetCommand() { return "initialize"; }
222222
llvm::StringMap<bool> GetCapabilities() const override {
223223
return {{"supportsRunInTerminalRequest", true}};
224224
}
@@ -228,14 +228,14 @@ class InitializeRequestHandler : public LegacyRequestHandler {
228228
class LaunchRequestHandler : public LegacyRequestHandler {
229229
public:
230230
using LegacyRequestHandler::LegacyRequestHandler;
231-
static llvm::StringLiteral getCommand() { return "launch"; }
231+
static llvm::StringLiteral GetCommand() { return "launch"; }
232232
void operator()(const llvm::json::Object &request) const override;
233233
};
234234

235235
class RestartRequestHandler : public LegacyRequestHandler {
236236
public:
237237
using LegacyRequestHandler::LegacyRequestHandler;
238-
static llvm::StringLiteral getCommand() { return "restart"; }
238+
static llvm::StringLiteral GetCommand() { return "restart"; }
239239
llvm::StringMap<bool> GetCapabilities() const override {
240240
return {{"supportsRestartRequest", true}};
241241
}
@@ -245,21 +245,21 @@ class RestartRequestHandler : public LegacyRequestHandler {
245245
class NextRequestHandler : public LegacyRequestHandler {
246246
public:
247247
using LegacyRequestHandler::LegacyRequestHandler;
248-
static llvm::StringLiteral getCommand() { return "next"; }
248+
static llvm::StringLiteral GetCommand() { return "next"; }
249249
void operator()(const llvm::json::Object &request) const override;
250250
};
251251

252252
class StepInRequestHandler : public LegacyRequestHandler {
253253
public:
254254
using LegacyRequestHandler::LegacyRequestHandler;
255-
static llvm::StringLiteral getCommand() { return "stepIn"; }
255+
static llvm::StringLiteral GetCommand() { return "stepIn"; }
256256
void operator()(const llvm::json::Object &request) const override;
257257
};
258258

259259
class StepInTargetsRequestHandler : public LegacyRequestHandler {
260260
public:
261261
using LegacyRequestHandler::LegacyRequestHandler;
262-
static llvm::StringLiteral getCommand() { return "stepInTargets"; }
262+
static llvm::StringLiteral GetCommand() { return "stepInTargets"; }
263263
llvm::StringMap<bool> GetCapabilities() const override {
264264
return {{"supportsStepInTargetsRequest", true}};
265265
}
@@ -269,14 +269,14 @@ class StepInTargetsRequestHandler : public LegacyRequestHandler {
269269
class StepOutRequestHandler : public LegacyRequestHandler {
270270
public:
271271
using LegacyRequestHandler::LegacyRequestHandler;
272-
static llvm::StringLiteral getCommand() { return "stepOut"; }
272+
static llvm::StringLiteral GetCommand() { return "stepOut"; }
273273
void operator()(const llvm::json::Object &request) const override;
274274
};
275275

276276
class SetBreakpointsRequestHandler : public LegacyRequestHandler {
277277
public:
278278
using LegacyRequestHandler::LegacyRequestHandler;
279-
static llvm::StringLiteral getCommand() { return "setBreakpoints"; }
279+
static llvm::StringLiteral GetCommand() { return "setBreakpoints"; }
280280
llvm::StringMap<bool> GetCapabilities() const override {
281281
return {{"supportsConditionalBreakpoints", true},
282282
{"supportsHitConditionalBreakpoints", true}};
@@ -287,14 +287,14 @@ class SetBreakpointsRequestHandler : public LegacyRequestHandler {
287287
class SetExceptionBreakpointsRequestHandler : public LegacyRequestHandler {
288288
public:
289289
using LegacyRequestHandler::LegacyRequestHandler;
290-
static llvm::StringLiteral getCommand() { return "setExceptionBreakpoints"; }
290+
static llvm::StringLiteral GetCommand() { return "setExceptionBreakpoints"; }
291291
void operator()(const llvm::json::Object &request) const override;
292292
};
293293

294294
class SetFunctionBreakpointsRequestHandler : public LegacyRequestHandler {
295295
public:
296296
using LegacyRequestHandler::LegacyRequestHandler;
297-
static llvm::StringLiteral getCommand() { return "setFunctionBreakpoints"; }
297+
static llvm::StringLiteral GetCommand() { return "setFunctionBreakpoints"; }
298298
llvm::StringMap<bool> GetCapabilities() const override {
299299
return {{"supportsFunctionBreakpoints", true}};
300300
}
@@ -304,21 +304,21 @@ class SetFunctionBreakpointsRequestHandler : public LegacyRequestHandler {
304304
class DataBreakpointInfoRequestHandler : public LegacyRequestHandler {
305305
public:
306306
using LegacyRequestHandler::LegacyRequestHandler;
307-
static llvm::StringLiteral getCommand() { return "dataBreakpointInfo"; }
307+
static llvm::StringLiteral GetCommand() { return "dataBreakpointInfo"; }
308308
void operator()(const llvm::json::Object &request) const override;
309309
};
310310

311311
class SetDataBreakpointsRequestHandler : public LegacyRequestHandler {
312312
public:
313313
using LegacyRequestHandler::LegacyRequestHandler;
314-
static llvm::StringLiteral getCommand() { return "setDataBreakpoints"; }
314+
static llvm::StringLiteral GetCommand() { return "setDataBreakpoints"; }
315315
void operator()(const llvm::json::Object &request) const override;
316316
};
317317

318318
class SetInstructionBreakpointsRequestHandler : public LegacyRequestHandler {
319319
public:
320320
using LegacyRequestHandler::LegacyRequestHandler;
321-
static llvm::StringLiteral getCommand() {
321+
static llvm::StringLiteral GetCommand() {
322322
return "setInstructionBreakpoints";
323323
}
324324
void operator()(const llvm::json::Object &request) const override;
@@ -327,14 +327,14 @@ class SetInstructionBreakpointsRequestHandler : public LegacyRequestHandler {
327327
class CompileUnitsRequestHandler : public LegacyRequestHandler {
328328
public:
329329
using LegacyRequestHandler::LegacyRequestHandler;
330-
static llvm::StringLiteral getCommand() { return "compileUnits"; }
330+
static llvm::StringLiteral GetCommand() { return "compileUnits"; }
331331
void operator()(const llvm::json::Object &request) const override;
332332
};
333333

334334
class ModulesRequestHandler : public LegacyRequestHandler {
335335
public:
336336
using LegacyRequestHandler::LegacyRequestHandler;
337-
static llvm::StringLiteral getCommand() { return "modules"; }
337+
static llvm::StringLiteral GetCommand() { return "modules"; }
338338
llvm::StringMap<bool> GetCapabilities() const override {
339339
return {{"supportsModulesRequest", true}};
340340
}
@@ -344,21 +344,21 @@ class ModulesRequestHandler : public LegacyRequestHandler {
344344
class PauseRequestHandler : public LegacyRequestHandler {
345345
public:
346346
using LegacyRequestHandler::LegacyRequestHandler;
347-
static llvm::StringLiteral getCommand() { return "pause"; }
347+
static llvm::StringLiteral GetCommand() { return "pause"; }
348348
void operator()(const llvm::json::Object &request) const override;
349349
};
350350

351351
class ScopesRequestHandler : public LegacyRequestHandler {
352352
public:
353353
using LegacyRequestHandler::LegacyRequestHandler;
354-
static llvm::StringLiteral getCommand() { return "scopes"; }
354+
static llvm::StringLiteral GetCommand() { return "scopes"; }
355355
void operator()(const llvm::json::Object &request) const override;
356356
};
357357

358358
class SetVariableRequestHandler : public LegacyRequestHandler {
359359
public:
360360
using LegacyRequestHandler::LegacyRequestHandler;
361-
static llvm::StringLiteral getCommand() { return "setVariable"; }
361+
static llvm::StringLiteral GetCommand() { return "setVariable"; }
362362
llvm::StringMap<bool> GetCapabilities() const override {
363363
return {{"supportsSetVariable", true}};
364364
}
@@ -370,43 +370,43 @@ class SourceRequestHandler
370370
protocol::SourceResponseBody> {
371371
public:
372372
using RequestHandler::RequestHandler;
373-
static llvm::StringLiteral getCommand() { return "source"; }
373+
static llvm::StringLiteral GetCommand() { return "source"; }
374374
llvm::Expected<protocol::SourceResponseBody>
375375
Run(const protocol::SourceArguments &args) const override;
376376
};
377377

378378
class StackTraceRequestHandler : public LegacyRequestHandler {
379379
public:
380380
using LegacyRequestHandler::LegacyRequestHandler;
381-
static llvm::StringLiteral getCommand() { return "stackTrace"; }
381+
static llvm::StringLiteral GetCommand() { return "stackTrace"; }
382382
void operator()(const llvm::json::Object &request) const override;
383383
};
384384

385385
class ThreadsRequestHandler : public LegacyRequestHandler {
386386
public:
387387
using LegacyRequestHandler::LegacyRequestHandler;
388-
static llvm::StringLiteral getCommand() { return "threads"; }
388+
static llvm::StringLiteral GetCommand() { return "threads"; }
389389
void operator()(const llvm::json::Object &request) const override;
390390
};
391391

392392
class VariablesRequestHandler : public LegacyRequestHandler {
393393
public:
394394
using LegacyRequestHandler::LegacyRequestHandler;
395-
static llvm::StringLiteral getCommand() { return "variables"; }
395+
static llvm::StringLiteral GetCommand() { return "variables"; }
396396
void operator()(const llvm::json::Object &request) const override;
397397
};
398398

399399
class LocationsRequestHandler : public LegacyRequestHandler {
400400
public:
401401
using LegacyRequestHandler::LegacyRequestHandler;
402-
static llvm::StringLiteral getCommand() { return "locations"; }
402+
static llvm::StringLiteral GetCommand() { return "locations"; }
403403
void operator()(const llvm::json::Object &request) const override;
404404
};
405405

406406
class DisassembleRequestHandler : public LegacyRequestHandler {
407407
public:
408408
using LegacyRequestHandler::LegacyRequestHandler;
409-
static llvm::StringLiteral getCommand() { return "disassemble"; }
409+
static llvm::StringLiteral GetCommand() { return "disassemble"; }
410410
llvm::StringMap<bool> GetCapabilities() const override {
411411
return {{"supportsDisassembleRequest", true}};
412412
}
@@ -416,7 +416,7 @@ class DisassembleRequestHandler : public LegacyRequestHandler {
416416
class ReadMemoryRequestHandler : public LegacyRequestHandler {
417417
public:
418418
using LegacyRequestHandler::LegacyRequestHandler;
419-
static llvm::StringLiteral getCommand() { return "readMemory"; }
419+
static llvm::StringLiteral GetCommand() { return "readMemory"; }
420420
llvm::StringMap<bool> GetCapabilities() const override {
421421
return {{"supportsReadMemoryRequest", true}};
422422
}
@@ -430,7 +430,7 @@ class ReadMemoryRequestHandler : public LegacyRequestHandler {
430430
class TestGetTargetBreakpointsRequestHandler : public LegacyRequestHandler {
431431
public:
432432
using LegacyRequestHandler::LegacyRequestHandler;
433-
static llvm::StringLiteral getCommand() {
433+
static llvm::StringLiteral GetCommand() {
434434
return "_testGetTargetBreakpoints";
435435
}
436436
void operator()(const llvm::json::Object &request) const override;

0 commit comments

Comments
 (0)