This is an archive of the discontinued LLVM Phabricator instance.

[lldb/LibCxx] Have ExtractLibcxxStringInfo return an Optional result, NFC
ClosedPublic

Authored by vsk on Feb 4 2020, 6:39 PM.

Diff Detail

Event Timeline

vsk created this revision.Feb 4 2020, 6:39 PM
JDevlieghere accepted this revision.Feb 4 2020, 6:43 PM

Thanks for doing this!

lldb/source/Plugins/Language/CPlusPlus/LibCxx.cpp
507

Would it make sense to split the computation of size_mode_value and short_mode into a helper?

This revision is now accepted and ready to land.Feb 4 2020, 6:43 PM
vsk marked 2 inline comments as done.Feb 12 2020, 11:15 AM
vsk added inline comments.
lldb/source/Plugins/Language/CPlusPlus/LibCxx.cpp
507

My 2c is that having this inline seems a little more readable, but I'm not strongly opposed.

673–674

This causes some kind of use-after-free, I've backed this change out.

This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptFeb 12 2020, 11:29 AM