================ @@ -169,19 +169,42 @@ static lldb::Format GetItemFormatForFormat(lldb::Format format, } } +/// \brief Returns the number of elements of 'container_type' +/// as if its elements had type 'element_type'. +/// +/// For example, a container of type +/// `uint8_t __attribute__((vector_size(16)))` has 16 elements. +/// But calling `CalculateNumChildren` with an 'element_type' +/// of `float` (4-bytes) will return `4` because we are interpreting +/// the byte-array as a `float32[]`. +/// +/// \param[in] container_type The type of the container We ---------------- medismailben wrote:
nit: `We` -> `we` https://github.com/llvm/llvm-project/pull/68907 _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits