From d0bccb08b265349ac9a0fea9d2301c206cfad412 Mon Sep 17 00:00:00 2001 From: Joyee Cheung Date: Wed, 20 Dec 2017 01:38:51 +0800 Subject: [PATCH] [squash] snake case variable --- src/llnode.cc | 6 +++--- src/llv8.cc | 4 ++-- src/llv8.h | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/llnode.cc b/src/llnode.cc index c6c51ba6..3a41c1b2 100644 --- a/src/llnode.cc +++ b/src/llnode.cc @@ -301,13 +301,13 @@ bool ListCmd::DoExecute(SBDebugger d, char** cmd, void InitDebugMode() { - bool isDebugMode = false; + bool is_debug_mode = false; char* var = getenv("LLNODE_DEBUG"); if (var != nullptr && strlen(var) != 0) { - isDebugMode = true; + is_debug_mode = true; } - v8::Error::SetDebugMode(isDebugMode); + v8::Error::SetDebugMode(is_debug_mode); } } // namespace llnode diff --git a/src/llv8.cc b/src/llv8.cc index d6e23fba..0bc972dc 100644 --- a/src/llv8.cc +++ b/src/llv8.cc @@ -58,7 +58,7 @@ void LLV8::Load(SBTarget target) { types.Assign(target, &common); } -bool Error::isDebugMode = false; +bool Error::is_debug_mode = false; Error::Error(bool failed, const char* format, ...) { failed_ = failed; @@ -72,7 +72,7 @@ Error::Error(bool failed, const char* format, ...) { void Error::PrintInDebugMode(const char* format, ...) { - if (!isDebugMode) { + if (!is_debug_mode) { return; } char fmt[kMaxMessageLength]; diff --git a/src/llv8.h b/src/llv8.h index 1ee568a6..5aa0921e 100644 --- a/src/llv8.h +++ b/src/llv8.h @@ -38,13 +38,13 @@ class Error { inline const char* GetMessage() { return msg_.c_str(); } - static void SetDebugMode(bool mode) { isDebugMode = mode; } + static void SetDebugMode(bool mode) { is_debug_mode = mode; } private: bool failed_; std::string msg_; static const size_t kMaxMessageLength = 128; - static bool isDebugMode; + static bool is_debug_mode; }; #define V8_VALUE_DEFAULT_METHODS(NAME, PARENT) \