[Lldb-commits] [PATCH] D113760: [formatters] Draft diff for unordered_map libstdcpp formatter

Danil Stefaniuc via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Fri Nov 12 06:08:25 PST 2021


danilashtefan added a comment.

Hi Walter :) This is the Draft PR for the unordered_map/set data formatter. Currently it works well in case both key and values are of the same primitive data types (except string).

Unfortunately, the following problems are encountered:

1. When key and value are of different types value is detected wrong (some garbage). I will leave the separate comment with the details

2)Currently I print the unordered_map in the following form [key] = [value]. However, the right from would be: [index] = (first = key, second = value). I am struggling through finding the way to do so

3)Whether key and/or value are of the string type, formatter cannot read the data. Is the string formatter issue.

Many thanks for your help in advance


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D113760/new/

https://reviews.llvm.org/D113760



More information about the lldb-commits mailing list