[Lldb-commits] [lldb] [lldb] Upgrade `GetIndexOfChildWithName` to use `llvm::Expected` (PR #136693)
Michael Buch via lldb-commits
lldb-commits at lists.llvm.org
Tue Apr 22 08:09:39 PDT 2025
================
@@ -612,9 +611,9 @@ lldb_private::formatters::GenericNSArrayISyntheticFrontEnd<D32, D64, Inline>::
}
template <typename D32, typename D64, bool Inline>
-size_t
-lldb_private::formatters::GenericNSArrayISyntheticFrontEnd<D32, D64, Inline>::
- GetIndexOfChildWithName(ConstString name) {
+llvm::Expected<size_t>
+lldb_private::formatters::GenericNSArrayISyntheticFrontEnd<
+ D32, D64, Inline>::GetIndexOfChildWithName(ConstString name) {
const char *item_name = name.GetCString();
----------------
Michael137 wrote:
I expect this function to get some cleanup once `ExtractIndexFromString` returns `llvm::Expected`
https://github.com/llvm/llvm-project/pull/136693
More information about the lldb-commits
mailing list