This is an archive of the discontinued LLVM Phabricator instance.

[NFCI] More TypeCategoryImpl refactoring.
AbandonedPublic

Authored by jgorbe on Sep 27 2022, 3:12 PM.

Details

Reviewers
jingham
labath
Summary

The main aim of this patch is deleting 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.Sep 27 2022, 3:12 PM
Herald added a project: Restricted Project. · View Herald TranscriptSep 27 2022, 3:12 PM
jgorbe requested review of this revision.Sep 27 2022, 3:12 PM
jgorbe abandoned this revision.Sep 27 2022, 3:15 PM

whoops, I need to commit some other local change before this one. I'm going to abandon this revision and I'll re-send this patch when its dependency lands. Sorry for the noise.

FWIW, phabricator allows you to create stacked patches. Just base your diff on top of the previous patch, and then list that patch as a "parent revision" for the new one.