[Lldb-commits] [lldb] [lldb] Clear thread name container before writing UTF8 bytes (PR #134150)
Karl Traunmüller via lldb-commits
lldb-commits at lists.llvm.org
Thu Apr 3 00:53:24 PDT 2025
ktraunmueller wrote:
Just out of curiosity: I was also surprised by the precondition, which looks unnecessary and, more importantly, very unexpected, to me.
How would a caller know (from looking at the API) that passing a non-empty string would be fatal?
If there's a preconditions in the code, I would expect it to be reflected in the documentation. But since there's no documentation (also unexpected), does that mean that every method needs to be carefully checked for assertions before using it?
https://github.com/llvm/llvm-project/pull/134150
More information about the lldb-commits
mailing list