[Lldb-commits] [PATCH] D117383: [lldb] Expose std::pair children for unordered_map
Richard Smith - zygoloid via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Fri Sep 2 13:21:34 PDT 2022
rsmith added inline comments.
================
Comment at: lldb/source/Plugins/Language/CPlusPlus/LibCxxUnorderedMap.cpp:74
+ if (name.consume_front("std::"))
+ name.consume_front("__1::");
+ return name.consume_front(type) && name.startswith("<");
----------------
This is not right -- libc++ allows customizing its inline namespace name for versioning purpose; it's not `__1` across all deployments. For example, with the libc++ unstable ABI, it will likely be something else. To handle this properly I think you'll need to look for either `std::name<` or something like `std::[a-zA-Z0-9_]*::name<`.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D117383/new/
https://reviews.llvm.org/D117383
More information about the lldb-commits
mailing list