Adrian Prantl
174899f738
[lldb] Refactor helper by using iterators and in-place edits (NFC) ( #116876 )
...
Based on post-commit review feedback by Felipe Piovezan!
2024-11-19 13:02:47 -08:00
Adrian Prantl
6b4f67545d
[lldb] Improve rendering of inline diagnostics on the same column ( #116727 )
...
depends on https://github.com/llvm/llvm-project/pull/116711
[lldb] Improve rendering of inline diagnostics on the same column by
fixing the indentation and printing these annotations in the original
order.
Before
a+b+c;
^ ^ ^
| | error: 3
| |note: 2b
| error: 2a
error: 1
After
a+b+c;
^ ^ ^
| | error: 3
| error: 2a
| note: 2b
error: 1
2024-11-19 09:13:00 -08:00
Adrian Prantl
8b2dff960d
[lldb] Fix a positioning bug in diagnostics output ( #116711 )
...
The old code did not take the indentation into account.
2024-11-19 08:58:49 -08:00
Adrian Prantl
74e1554d7b
[lldb] Fix the sorting function for diagnostics ( #113220 )
2024-10-21 14:03:49 -07:00
Adrian Prantl
8046f15dfa
[lldb] Fix offset calculation when printing diagnostics in multiple ranges ( #112466 )
...
depends on https://github.com/llvm/llvm-project/pull/112451
2024-10-16 09:46:35 -07:00
Adrian Prantl
889e6ad24b
[lldb] Fix a crash when two diagnostics are on the same column or in … ( #112451 )
...
…reverse order
The second inner loop (only) was missing the check for offset > column.
Also this patch sorts the diagnostics before printing them.
2024-10-16 09:45:39 -07:00
Adrian Prantl
089227feaf
Support inline diagnostics in CommandReturnObject ( #110901 )
...
and implement them for dwim-print (a.k.a. `p`) as an example.
The next step will be to expose them as structured data in
SBCommandReturnObject.
2024-10-11 09:08:52 -07:00