Skip to content

Commit aea1c70

Browse files
committed
code formatting
1 parent ae6e7d2 commit aea1c70

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

lldb/tools/lldb-dap/JSONUtils.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1210,11 +1210,11 @@ bool ValuePointsToCode(lldb::SBValue v) {
12101210
}
12111211

12121212
int64_t PackLocation(int64_t var_ref, bool is_value_location) {
1213-
return var_ref << 1 | is_value_location;
1213+
return var_ref << 1 | is_value_location;
12141214
}
12151215

12161216
std::pair<int64_t, bool> UnpackLocation(int64_t location_id) {
1217-
return std::pair{ location_id >> 1, location_id & 1};
1217+
return std::pair{location_id >> 1, location_id & 1};
12181218
}
12191219

12201220
// "Variable": {
@@ -1421,7 +1421,8 @@ llvm::json::Value CreateVariable(lldb::SBValue v, int64_t var_ref,
14211421
object.try_emplace("variablesReference", 0);
14221422

14231423
if (v.GetDeclaration().IsValid())
1424-
object.try_emplace("declarationLocationReference", PackLocation(var_ref, false));
1424+
object.try_emplace("declarationLocationReference",
1425+
PackLocation(var_ref, false));
14251426

14261427
if (ValuePointsToCode(v))
14271428
object.try_emplace("valueLocationReference", PackLocation(var_ref, true));

lldb/tools/lldb-dap/lldb-dap.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1643,8 +1643,8 @@ void request_evaluate(const llvm::json::Object &request) {
16431643
EmplaceSafeString(body, "type", desc.display_type_name);
16441644
int64_t var_ref = 0;
16451645
if (value.MightHaveChildren() || ValuePointsToCode(value))
1646-
var_ref = g_dap.variables.InsertVariable(
1647-
value, /*is_permanent=*/context == "repl");
1646+
var_ref = g_dap.variables.InsertVariable(
1647+
value, /*is_permanent=*/context == "repl");
16481648
if (value.MightHaveChildren())
16491649
body.try_emplace("variablesReference", var_ref);
16501650
else

0 commit comments

Comments
 (0)