Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

src: run make format on all files #229

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/llnode.cc
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@

namespace llnode {

using lldb::eReturnStatusFailed;
using lldb::eReturnStatusSuccessFinishResult;
using lldb::SBCommandInterpreter;
using lldb::SBCommandReturnObject;
using lldb::SBDebugger;
Expand All @@ -30,6 +28,8 @@ using lldb::SBSymbol;
using lldb::SBTarget;
using lldb::SBThread;
using lldb::SBValue;
using lldb::eReturnStatusFailed;
using lldb::eReturnStatusSuccessFinishResult;


bool BacktraceCmd::DoExecute(SBDebugger d, char** cmd,
Expand Down
4 changes: 2 additions & 2 deletions src/llscan.cc
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@
namespace llnode {

using lldb::ByteOrder;
using lldb::eReturnStatusFailed;
using lldb::eReturnStatusSuccessFinishResult;
using lldb::SBCommandReturnObject;
using lldb::SBDebugger;
using lldb::SBError;
using lldb::SBExpressionOptions;
using lldb::SBStream;
using lldb::SBTarget;
using lldb::SBValue;
using lldb::eReturnStatusFailed;
using lldb::eReturnStatusSuccessFinishResult;

const char* const
FindReferencesCmd::ObjectScanner::property_reference_template =
Expand Down
2 changes: 1 addition & 1 deletion src/llv8-constants.cc
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ namespace llnode {
namespace v8 {
namespace constants {

using lldb::addr_t;
using lldb::SBAddress;
using lldb::SBError;
using lldb::SBProcess;
using lldb::SBSymbol;
using lldb::SBSymbolContext;
using lldb::SBSymbolContextList;
using lldb::SBTarget;
using lldb::addr_t;

void Module::Assign(SBTarget target, Common* common) {
loaded_ = false;
Expand Down
20 changes: 14 additions & 6 deletions src/llv8.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1103,7 +1103,10 @@ std::string Context::Inspect(InspectOptions* options, Error& err) {
HeapObject heap_previous = HeapObject(previous);
if (heap_previous.Check()) {
char tmp[128];
snprintf(tmp, sizeof(tmp), (options->get_indent_spaces() + "(previous)=0x%016" PRIx64).c_str(), previous.raw());
snprintf(
tmp, sizeof(tmp),
(options->get_indent_spaces() + "(previous)=0x%016" PRIx64).c_str(),
previous.raw());
res += std::string(tmp) + ":<Context>,";
}

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

InspectOptions closure_options;
res += closure.Inspect(&closure_options, err) + "}";
if (err.Fail()) return std::string();
} else {
char tmp[128];
snprintf(tmp, sizeof(tmp), (options->get_indent_spaces() + "(scope_info)=0x%016" PRIx64).c_str(),
scope.raw());
snprintf(
tmp, sizeof(tmp),
(options->get_indent_spaces() + "(scope_info)=0x%016" PRIx64).c_str(),
scope.raw());

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

Error function_name_error;
HeapObject maybe_function_name = scope.MaybeFunctionName(function_name_error);
HeapObject maybe_function_name =
scope.MaybeFunctionName(function_name_error);

if (function_name_error.Success()) {
res += ": for function " + String(maybe_function_name).ToString(err);
Expand Down
2 changes: 1 addition & 1 deletion src/llv8.h
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@ class Context : public FixedArray {
inline T GetEmbedderData(int64_t index, Error& err);
inline Value ContextSlot(int index, Error& err);

std::string Inspect(InspectOptions *options, Error& err);
std::string Inspect(InspectOptions* options, Error& err);

private:
inline JSFunction Closure(Error& err);
Expand Down