This is an archive of the discontinued LLVM Phabricator instance.

[LLDB][DataFormatter] Add support for std::__map_const_iterator
ClosedPublic

Authored by Michael137 on Jul 17 2022, 4:20 AM.

Details

Summary

This patch adds support for formatting std::map::const_iterator.
It's just a matter of adding const_ to the existing regex.

Testing

  • Added test case to existing API tests

Diff Detail

Event Timeline

Michael137 created this revision.Jul 17 2022, 4:20 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 17 2022, 4:20 AM
Michael137 requested review of this revision.Jul 17 2022, 4:20 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 17 2022, 4:20 AM
aprantl accepted this revision.Jul 21 2022, 6:07 AM
aprantl added inline comments.
lldb/test/API/functionalities/data-formatter/data-formatter-stl/libcxx/map/main.cpp
30

I know this is just a test, but maybe add a \n at the end?

This revision is now accepted and ready to land.Jul 21 2022, 6:07 AM
  • Add newline to flush printf buffer
Michael137 marked an inline comment as done.Jul 21 2022, 6:20 AM
This revision was landed with ongoing or failed builds.Jul 21 2022, 6:22 AM
This revision was automatically updated to reflect the committed changes.