[Lldb-commits] [PATCH] D110447: [lldb] Convert misc. StringConvert uses

Raphael Isemann via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Sat Sep 25 04:21:12 PDT 2021


teemperor accepted this revision.
teemperor added a comment.
This revision is now accepted and ready to land.

This patch makes me very happy. I have one comment regarding one small change in behaviour, but otherwise this LGTM.

If you have the time, it would be nice to drop FIXME's above the few places where the return value of `to_integer` is not checked. Those always make great beginner bugs.



================
Comment at: lldb/source/Symbol/SymbolContext.cpp:986
-    m_end_line = StringConvert::ToSInt32(spec_string, 0, 0, &return_value);
-    if (return_value)
       m_type |= eLineEndSpecified;
----------------
This change and the one above make this return true on a parse failure. LLDB is of course one step ahead of us here and never even checks the return value anywhere (...), but I think it still makes sense to preserve the behaviour in this patch.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D110447/new/

https://reviews.llvm.org/D110447



More information about the lldb-commits mailing list