This patch makes the FormatEntity honor the debugger's color settings by not inserting ASCII escape sequences when colors are disabled.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
Seems good to me.
lldb/lit/Settings/TestFrameFormatColor.test | ||
---|---|---|
12 ↗ | (On Diff #202354) | I don't see any escape code here, I assume phabricator is just not showing them? 😛 |
lldb/lit/Settings/TestFrameFormatColor.test | ||
---|---|---|
12 ↗ | (On Diff #202354) | Yup! |
lldb/trunk/include/lldb/Core/FormatEntity.h | ||
---|---|---|
44 | InsertString is used for more than just escape codes so it is now not named correctly. For a variable formatter string like "(${var.x}, ${var.y})", the "(" is a string, and ", " and ")" are InsertString objects. Any constant string that is part of a formatter. Can you change the name back? |
InsertString is used for more than just escape codes so it is now not named correctly. For a variable formatter string like "(${var.x}, ${var.y})", the "(" is a string, and ", " and ")" are InsertString objects. Any constant string that is part of a formatter. Can you change the name back?