[Lldb-commits] [lldb] [lldb] Improve editline completion formatting (PR #116456)

Pavel Labath via lldb-commits lldb-commits at lists.llvm.org
Mon Nov 18 00:59:14 PST 2024


https://github.com/labath commented:

The string manipulations are fairly crude. I tried to suggest replacements using more advanced features. I'm not sure I got all of the offset calculations right, but I think they demonstrate the general idea, which is:
- using existing printf features (e.g. for padding and size limiting) instead of rolling your own
- avoiding explicit cursor position tracking by ensuring each block of code always ends at a predefined position.

https://github.com/llvm/llvm-project/pull/116456


More information about the lldb-commits mailing list