[Lldb-commits] [PATCH] D13778: [SBValue] Add a method HasChildAtIndex.
Pavel Labath via lldb-commits
lldb-commits at lists.llvm.org
Fri Oct 16 01:19:58 PDT 2015
labath added a subscriber: labath.
labath added a comment.
Not really my area, but couldn't the needed functionality be implemented on top of GetChildAtIndex(). I mean, if GetChildAtIndex(50) returns a valid SBValue, then the container has at least 50 elements, right?
Then `HasAtLeastNChildren(n) == GetChildAtIndex(n).IsValid()` and we don't need to add anything to the public API. Or am I missing something here... (?)
http://reviews.llvm.org/D13778
More information about the lldb-commits
mailing list