[Lldb-commits] [lldb] Change the return type of CalculateNumChildren to uint32_t. (PR #83501)

Adrian Prantl via lldb-commits lldb-commits at lists.llvm.org
Mon Mar 4 16:45:41 PST 2024


adrian-prantl wrote:

> Looking good. One question: do we want to switch to using a `std::optional<uint64_t>` instead of using a `uint64_t` with a default value of UINT32_MAX? We should either use the optional or switch everything except for the public API over to use `UINT64_MAX`

The entire point of this patch series is to prepare for a final patch that will change the return value to `llvm::Expected<uint64_t>` :-)

https://github.com/llvm/llvm-project/pull/83501


More information about the lldb-commits mailing list