[Lldb-commits] [lldb] [lldb] Improve rendering of inline diagnostics on the same column (PR #116727)

Augusto Noronha via lldb-commits lldb-commits at lists.llvm.org
Tue Nov 19 08:59:03 PST 2024


================
@@ -130,6 +131,25 @@ void RenderDiagnosticDetails(Stream &stream,
   }
   stream << '\n';
 
+  // Reverse the order within groups of diagnostics that are on the same column.
+  auto group = [](auto &ds) {
+    uint16_t column = 0;
+    std::vector<DiagnosticDetail> result, group;
+    for (auto d : ds) {
----------------
augusto2112 wrote:

`auto &`?

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


More information about the lldb-commits mailing list