Skip to content

Commit d0bccb0

Browse files
committed
[squash] snake case variable
1 parent 764e861 commit d0bccb0

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

src/llnode.cc

+3-3
Original file line numberDiff line numberDiff line change
@@ -301,13 +301,13 @@ bool ListCmd::DoExecute(SBDebugger d, char** cmd,
301301

302302

303303
void InitDebugMode() {
304-
bool isDebugMode = false;
304+
bool is_debug_mode = false;
305305
char* var = getenv("LLNODE_DEBUG");
306306
if (var != nullptr && strlen(var) != 0) {
307-
isDebugMode = true;
307+
is_debug_mode = true;
308308
}
309309

310-
v8::Error::SetDebugMode(isDebugMode);
310+
v8::Error::SetDebugMode(is_debug_mode);
311311
}
312312

313313
} // namespace llnode

src/llv8.cc

+2-2
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ void LLV8::Load(SBTarget target) {
5858
types.Assign(target, &common);
5959
}
6060

61-
bool Error::isDebugMode = false;
61+
bool Error::is_debug_mode = false;
6262

6363
Error::Error(bool failed, const char* format, ...) {
6464
failed_ = failed;
@@ -72,7 +72,7 @@ Error::Error(bool failed, const char* format, ...) {
7272

7373

7474
void Error::PrintInDebugMode(const char* format, ...) {
75-
if (!isDebugMode) {
75+
if (!is_debug_mode) {
7676
return;
7777
}
7878
char fmt[kMaxMessageLength];

src/llv8.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,13 @@ class Error {
3838

3939
inline const char* GetMessage() { return msg_.c_str(); }
4040

41-
static void SetDebugMode(bool mode) { isDebugMode = mode; }
41+
static void SetDebugMode(bool mode) { is_debug_mode = mode; }
4242

4343
private:
4444
bool failed_;
4545
std::string msg_;
4646
static const size_t kMaxMessageLength = 128;
47-
static bool isDebugMode;
47+
static bool is_debug_mode;
4848
};
4949

5050
#define V8_VALUE_DEFAULT_METHODS(NAME, PARENT) \

0 commit comments

Comments
 (0)