[Lldb-commits] [lldb] [lldb] [disassembler] chore: enhance VariableAnnotator to return structured data: introduce VariableAnnotator::AnnotateStructured method (PR #169408)

Jonas Devlieghere via lldb-commits lldb-commits at lists.llvm.org
Wed Nov 26 11:35:02 PST 2025


================
@@ -300,16 +304,41 @@ bool Disassembler::ElideMixedSourceAndDisassemblyLine(
 // disassembled instruction stream, similar to how debug information
 // enhances source-level debugging.
 std::vector<std::string> VariableAnnotator::Annotate(Instruction &inst) {
+  auto structured_annotations = AnnotateStructured(inst);
+
   std::vector<std::string> events;
+  events.reserve(structured_annotations.size());
+
+  for (const auto &annotation : structured_annotations) {
----------------
JDevlieghere wrote:

Same here, I can't tell what type `auto` is here by reading the code. Applies to other parts of this PR as well.

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


More information about the lldb-commits mailing list