This is an archive of the discontinued LLVM Phabricator instance.

[lldb] Take StringRef name in GetIndexOfChildWithName (NFC)
ClosedPublic

Authored by kastiglione on May 31 2023, 8:27 AM.

Details

Summary

As with D151615, which changed GetIndexOfChildMemberWithName to take a StringRef
instead of a ConstString, this change does the same for GetIndexOfChildWithName.

Diff Detail

Event Timeline

kastiglione created this revision.May 31 2023, 8:27 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 31 2023, 8:27 AM
Herald added a subscriber: arphaman. · View Herald Transcript
kastiglione requested review of this revision.May 31 2023, 8:27 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 31 2023, 8:27 AM
Michael137 accepted this revision.May 31 2023, 8:47 AM
Michael137 added a subscriber: Michael137.

lgtm

lldb/source/Core/ValueObjectSyntheticFilter.cpp
338

Could pass name_ref directly now, instead of doing the implicit conversion

This revision is now accepted and ready to land.May 31 2023, 8:47 AM
bulbazord accepted this revision.May 31 2023, 10:07 AM
kastiglione added inline comments.Jun 1 2023, 8:23 PM
lldb/source/Core/ValueObjectSyntheticFilter.cpp
338

This is a different GetIndexOfChildWithName, in the SyntheticChildrenFrontEnd class. It still takes a ConstString, changing it is a follow up.