This is an archive of the discontinued LLVM Phabricator instance.

[lldb] Default can_create to true in GetChildAtIndex (NFC)
ClosedPublic

Authored by kastiglione on Jun 2 2023, 1:53 PM.

Details

Summary

Existing callers of GetChildAtIndex pass true for can_create. This change
makes true the default value, callers don't have to pass an opaque true.

See also D151966 for the same change to GetChildMemberWithName.

Diff Detail

Event Timeline

kastiglione created this revision.Jun 2 2023, 1:53 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 2 2023, 1:53 PM
Herald added a subscriber: arphaman. · View Herald Transcript
kastiglione requested review of this revision.Jun 2 2023, 1:53 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 2 2023, 1:53 PM
jingham accepted this revision.Jun 13 2023, 10:37 AM

I can dream up a few speculative uses of can_create => false but they are all a little far-fetched. Certainly passing true is the dominant mode, so making it a default seems fine to me and reduces a bunch of noise.

This revision is now accepted and ready to land.Jun 13 2023, 10:37 AM