[Lldb-commits] [lldb] [lldb][test] Combine libstdc++ and libc++ std::variant tests into generic test (PR #147253)
Michael Buch via lldb-commits
lldb-commits at lists.llvm.org
Tue Jul 8 04:11:02 PDT 2025
Michael137 wrote:
For now i think I'll probably i'll reset the formatters in the teardown hook, but Jim's comment on https://github.com/llvm/llvm-project/pull/110767 might be a good follow-up;
> The narrowest solution is that when you go to cache a type name -> formatter pair, you should first check whether the type name is generic. If it is, then you can't guarantee it will resolve to the same base type in the future, so you should not cache it. IIUC, Michael started down this path but found there wasn't a way to tell straightforwardly whether a type was generic. Since this is just an optimization, we should first prove to ourselves that failing to put one of these type names in the exact matches really makes enough difference to bother with a complex solution. If the gains are some but not huge, some boneheaded solution like never caching anything where the from type has a '<' and a '>' is probably sufficient.
https://github.com/llvm/llvm-project/pull/147253
More information about the lldb-commits
mailing list