[Lldb-commits] [PATCH] D13094: LLDB-MI: Fix assignment operator in CMIUtilString

Eugene Leviant via lldb-commits lldb-commits at lists.llvm.org
Wed Sep 23 23:39:10 PDT 2015


evgeny777 added a comment.

Without this change I have to use temporary const char* variable each time I call GetData() GetSummary(), GetValue() and so on
It would be nice to be able to do something like this

CMIUtilString s = v.GetSummary();
if (!s.empty()) {

  CMIUtilString v = v.GetValue();
  if (!v.empty()) {
       // and so on
  }

}

And whenever I need error check I can use temporary const char* or just  "if (v.GetSummary() != NULL)


http://reviews.llvm.org/D13094





More information about the lldb-commits mailing list