[Lldb-commits] [PATCH] D13778: [SBValue] Add a method HasChildAtIndex.

Greg Clayton via lldb-commits lldb-commits at lists.llvm.org
Thu Oct 15 13:17:43 PDT 2015


clayborg added a comment.

I would almost rather change the GetNumChildren() to take a "max" param:

  class SBValue
  {
       uint32_t
       GetNumChildren ();
       uint32_t
       GetNumChildren (uint32_t max = UINT32_MAX);
  };

We need to keep the other one so that our public API still has the old call, but the second version could limit the number of children to verify to at most "max".


http://reviews.llvm.org/D13778





More information about the lldb-commits mailing list