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

Greg Clayton via lldb-commits lldb-commits at lists.llvm.org
Mon Mar 4 17:32:02 PST 2024


clayborg 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>` :-)

I was suggesting this for the input parameters only. But we can do this later. 


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


More information about the lldb-commits mailing list