Skip to content

Commit 886a03d

Browse files
committed
src: run clang-format
PR-URL: #260 Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
1 parent 64a4e5e commit 886a03d

File tree

5 files changed

+12
-15
lines changed

5 files changed

+12
-15
lines changed

src/llnode.cc

+4-6
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919

2020
namespace llnode {
2121

22+
using lldb::eReturnStatusFailed;
23+
using lldb::eReturnStatusSuccessFinishResult;
2224
using lldb::SBCommandInterpreter;
2325
using lldb::SBCommandReturnObject;
2426
using lldb::SBDebugger;
@@ -30,8 +32,6 @@ using lldb::SBSymbol;
3032
using lldb::SBTarget;
3133
using lldb::SBThread;
3234
using lldb::SBValue;
33-
using lldb::eReturnStatusFailed;
34-
using lldb::eReturnStatusSuccessFinishResult;
3535

3636

3737
bool BacktraceCmd::DoExecute(SBDebugger d, char** cmd,
@@ -433,17 +433,15 @@ bool PluginInitialize(SBDebugger d) {
433433
"JavaScript frame.\n\n"
434434
"Syntax: v8 source list [flags]\n\n"
435435
"Flags:\n"
436-
" * -l <line> - Print source code below line <line>.\n"
437-
);
436+
" * -l <line> - Print source code below line <line>.\n");
438437
interpreter.AddCommand("jssource", new llnode::ListCmd(&llv8),
439438
"Alias for `v8 source list`");
440439

441440
v8.AddCommand("findjsobjects", new llnode::FindObjectsCmd(&llscan),
442441
"List all object types and instance counts grouped by type "
443442
"name and sorted by instance count. Use -d or --detailed to "
444443
"get an output grouped by type name, properties, and array "
445-
"length, as well as more information regarding each type.\n"
446-
);
444+
"length, as well as more information regarding each type.\n");
447445

448446
SBCommand settingsCmd =
449447
v8.AddMultiwordCommand("settings", "Interpreter settings");

src/llnode_api.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
#define SRC_LLNODE_API_H_
55

66
#include <memory>
7-
#include <unordered_set>
87
#include <string>
8+
#include <unordered_set>
99
#include <vector>
1010

1111
namespace lldb {

src/llscan.cc

+5-6
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,15 @@
2323
namespace llnode {
2424

2525
using lldb::ByteOrder;
26+
using lldb::eReturnStatusFailed;
27+
using lldb::eReturnStatusSuccessFinishResult;
2628
using lldb::SBCommandReturnObject;
2729
using lldb::SBDebugger;
2830
using lldb::SBError;
2931
using lldb::SBExpressionOptions;
3032
using lldb::SBStream;
3133
using lldb::SBTarget;
3234
using lldb::SBValue;
33-
using lldb::eReturnStatusFailed;
34-
using lldb::eReturnStatusSuccessFinishResult;
3535

3636

3737
char** ParsePrinterOptions(char** cmd, Printer::PrinterOptions* options) {
@@ -261,10 +261,9 @@ bool FindInstancesCmd::DoExecute(SBDebugger d, char** cmd,
261261
final_p_offset = pagination_.total_entries;
262262
}
263263

264-
auto it =
265-
pagination_.current_page == 0
266-
? t->GetInstances().begin()
267-
: std::next(t->GetInstances().begin(), initial_p_offset);
264+
auto it = pagination_.current_page == 0
265+
? t->GetInstances().begin()
266+
: std::next(t->GetInstances().begin(), initial_p_offset);
268267
for (; it != t->GetInstances().end() &&
269268
it != (std::next(t->GetInstances().begin(), final_p_offset));
270269
++it) {

src/llv8-constants.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@ namespace llnode {
1313
namespace v8 {
1414
namespace constants {
1515

16+
using lldb::addr_t;
1617
using lldb::SBAddress;
1718
using lldb::SBError;
1819
using lldb::SBProcess;
1920
using lldb::SBSymbol;
2021
using lldb::SBSymbolContext;
2122
using lldb::SBSymbolContextList;
2223
using lldb::SBTarget;
23-
using lldb::addr_t;
2424

2525
void Module::Assign(SBTarget target, Common* common) {
2626
loaded_ = false;

src/llv8.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515
namespace llnode {
1616
namespace v8 {
1717

18+
using lldb::addr_t;
1819
using lldb::SBError;
1920
using lldb::SBTarget;
20-
using lldb::addr_t;
2121

2222
static std::string kConstantPrefix = "v8dbg_";
2323

0 commit comments

Comments
 (0)