Skip to content

Commit 32f0fc5

Browse files
[lldb] Correct spacing of = {...} when depth limit is hit (llvm#149480)
In some places it was printing "= {...}" and some "={...}" with no space. I think the space looks nicer so do that in both cases.
1 parent 5f00129 commit 32f0fc5

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

lldb/source/DataFormatters/ValueObjectPrinter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -854,7 +854,7 @@ llvm::Error ValueObjectPrinter::PrintChildrenIfNeeded(bool value_printed,
854854
PrintChildren(value_printed, summary_printed, curr_ptr_depth);
855855
} else if (HasReachedMaximumDepth() && IsAggregate() &&
856856
ShouldPrintValueObject()) {
857-
m_stream->PutCString("{...}\n");
857+
m_stream->PutCString(" {...}\n");
858858
// The maximum child depth has been reached. If `m_max_depth` is the default
859859
// (i.e. the user has _not_ customized it), then lldb presents a warning to
860860
// the user. The warning tells the user that the limit has been reached, but

lldb/test/API/lang/cpp/frame-var-depth-and-elem-count/TestFrameVarDepthAndElemCount.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ def test(self):
1919
self.expect(
2020
"frame var --depth 2 --element-count 5 -- c",
2121
substrs=[
22-
"[0] = {\n b ={...}\n }",
23-
"[1] = {\n b ={...}\n }",
24-
"[2] = {\n b ={...}\n }",
25-
"[3] = {\n b ={...}\n }",
26-
"[4] = {\n b ={...}\n }",
22+
"[0] = {\n b = {...}\n }",
23+
"[1] = {\n b = {...}\n }",
24+
"[2] = {\n b = {...}\n }",
25+
"[3] = {\n b = {...}\n }",
26+
"[4] = {\n b = {...}\n }",
2727
],
2828
)

0 commit comments

Comments
 (0)