This is an archive of the discontinued LLVM Phabricator instance.

[lldb][NFCI] Refactor out attribute parsing from DWARFASTParserClang::ParseSingleMember
ClosedPublic

Authored by teemperor on Oct 9 2021, 8:22 AM.

Details

Summary

D68422 introduced ParsedDWARFTypeAttributes which encapsulated attribute parsing and
storage into its own small struct. This patch is doing the same for the member type attribute
parsing. One utility class is parsing normal member attributes and the other is parsing the
dedicated Objective-C property attributes.

Right now the patch just makes the ParseSingleMember function a bit shorter, but the bigger
benefit is that we can now split up the function into Objective-C property parsing and parsing
of normal members (struct/class members and Objective-C ivars). The only shared code between
those two parsing logic is the normal member attribute parsing.

Diff Detail

Event Timeline

teemperor created this revision.Oct 9 2021, 8:22 AM
teemperor requested review of this revision.Oct 9 2021, 8:22 AM
labath accepted this revision.Oct 11 2021, 3:55 AM

seems reasonable to me

This revision is now accepted and ready to land.Oct 11 2021, 3:55 AM