Skip to content

Commit fe238a0

Browse files
committed
src: run make format on all files
Apparently we forgot to run `make format` on a few commits lately. This commit was just a `make format` run to fix some nits. clang-format version: `clang-format version 5.0.1 (tags/RELEASE_501/final)` PR-URL: #229 Reviewed-By: Colin Ihrig <[email protected]>
1 parent 5cf24d0 commit fe238a0

File tree

5 files changed

+20
-12
lines changed

5 files changed

+20
-12
lines changed

src/llnode.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@
1717

1818
namespace llnode {
1919

20-
using lldb::eReturnStatusFailed;
21-
using lldb::eReturnStatusSuccessFinishResult;
2220
using lldb::SBCommandInterpreter;
2321
using lldb::SBCommandReturnObject;
2422
using lldb::SBDebugger;
@@ -30,6 +28,8 @@ using lldb::SBSymbol;
3028
using lldb::SBTarget;
3129
using lldb::SBThread;
3230
using lldb::SBValue;
31+
using lldb::eReturnStatusFailed;
32+
using lldb::eReturnStatusSuccessFinishResult;
3333

3434

3535
bool BacktraceCmd::DoExecute(SBDebugger d, char** cmd,

src/llscan.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,15 @@
1818
namespace llnode {
1919

2020
using lldb::ByteOrder;
21-
using lldb::eReturnStatusFailed;
22-
using lldb::eReturnStatusSuccessFinishResult;
2321
using lldb::SBCommandReturnObject;
2422
using lldb::SBDebugger;
2523
using lldb::SBError;
2624
using lldb::SBExpressionOptions;
2725
using lldb::SBStream;
2826
using lldb::SBTarget;
2927
using lldb::SBValue;
28+
using lldb::eReturnStatusFailed;
29+
using lldb::eReturnStatusSuccessFinishResult;
3030

3131
const char* const
3232
FindReferencesCmd::ObjectScanner::property_reference_template =

src/llv8-constants.cc

Lines changed: 1 addition & 1 deletion
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;
1716
using lldb::SBAddress;
1817
using lldb::SBError;
1918
using lldb::SBProcess;
2019
using lldb::SBSymbol;
2120
using lldb::SBSymbolContext;
2221
using lldb::SBSymbolContextList;
2322
using lldb::SBTarget;
23+
using lldb::addr_t;
2424

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

src/llv8.cc

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1103,7 +1103,10 @@ std::string Context::Inspect(InspectOptions* options, Error& err) {
11031103
HeapObject heap_previous = HeapObject(previous);
11041104
if (heap_previous.Check()) {
11051105
char tmp[128];
1106-
snprintf(tmp, sizeof(tmp), (options->get_indent_spaces() + "(previous)=0x%016" PRIx64).c_str(), previous.raw());
1106+
snprintf(
1107+
tmp, sizeof(tmp),
1108+
(options->get_indent_spaces() + "(previous)=0x%016" PRIx64).c_str(),
1109+
previous.raw());
11071110
res += std::string(tmp) + ":<Context>,";
11081111
}
11091112

@@ -1113,22 +1116,27 @@ std::string Context::Inspect(InspectOptions* options, Error& err) {
11131116
JSFunction closure = Closure(err);
11141117
if (err.Fail()) return std::string();
11151118
char tmp[128];
1116-
snprintf(tmp, sizeof(tmp), (options->get_indent_spaces() + "(closure)=0x%016" PRIx64 " {").c_str(),
1117-
closure.raw());
1119+
snprintf(
1120+
tmp, sizeof(tmp),
1121+
(options->get_indent_spaces() + "(closure)=0x%016" PRIx64 " {").c_str(),
1122+
closure.raw());
11181123
res += tmp;
11191124

11201125
InspectOptions closure_options;
11211126
res += closure.Inspect(&closure_options, err) + "}";
11221127
if (err.Fail()) return std::string();
11231128
} else {
11241129
char tmp[128];
1125-
snprintf(tmp, sizeof(tmp), (options->get_indent_spaces() + "(scope_info)=0x%016" PRIx64).c_str(),
1126-
scope.raw());
1130+
snprintf(
1131+
tmp, sizeof(tmp),
1132+
(options->get_indent_spaces() + "(scope_info)=0x%016" PRIx64).c_str(),
1133+
scope.raw());
11271134

11281135
res += std::string(tmp) + ":<ScopeInfo";
11291136

11301137
Error function_name_error;
1131-
HeapObject maybe_function_name = scope.MaybeFunctionName(function_name_error);
1138+
HeapObject maybe_function_name =
1139+
scope.MaybeFunctionName(function_name_error);
11321140

11331141
if (function_name_error.Success()) {
11341142
res += ": for function " + String(maybe_function_name).ToString(err);

src/llv8.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@ class Context : public FixedArray {
396396
inline T GetEmbedderData(int64_t index, Error& err);
397397
inline Value ContextSlot(int index, Error& err);
398398

399-
std::string Inspect(InspectOptions *options, Error& err);
399+
std::string Inspect(InspectOptions* options, Error& err);
400400

401401
private:
402402
inline JSFunction Closure(Error& err);

0 commit comments

Comments
 (0)