This is an archive of the discontinued LLVM Phabricator instance.

[NFCI] More TypeCategoryImpl refactoring.
ClosedPublic

Authored by jgorbe on Oct 6 2022, 1:58 PM.

Details

Summary

The main aim of this patch is to delete the remaining instances of code
reaching into the internals of TypeCategoryImpl. I made the following
changes:

  • Add some more methods to TieredFormatterContainer and TypeCategoryImpl to expose functionality that is implemented in FormattersContainer.
  • Add new overloads of TypeCategoryImpl::AddTypeXXX to make it easier to add formatters to categories without reaching into the internal FormattersContainer objects.
  • Remove the GetTypeXXXContainer and GetRegexTypeXXXContainer accessors from TypeCategoryImpl and update all call sites to use the new methods instead.

Diff Detail

Event Timeline

jgorbe created this revision.Oct 6 2022, 1:58 PM
Herald added a project: Restricted Project. · View Herald TranscriptOct 6 2022, 1:58 PM
jgorbe requested review of this revision.Oct 6 2022, 1:58 PM
labath accepted this revision.Oct 10 2022, 1:29 AM
This revision is now accepted and ready to land.Oct 10 2022, 1:29 AM
This revision was automatically updated to reflect the committed changes.