[Lldb-commits] [PATCH] D37923: Implement interactive command interruption

Zachary Turner via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Tue Sep 19 10:39:03 PDT 2017


zturner added a comment.

Give me a few more hours, if there's a way to make this work with `line_iterator` I'd really prefer that since I think it improves readability.  Can you confirm that if you were able to write:

  auto begin = line_iterator(str, /* skip_empty_lines =*/ false);
  auto end = line_iterator();
  while (begin != end && !WasInterrupted()) {
    stream.Write(*begin);
    if (++begin != end)
      stream.Write("\n");
  }

That this would be equivalent?


https://reviews.llvm.org/D37923





More information about the lldb-commits mailing list