This is an archive of the discontinued LLVM Phabricator instance.

[Clang][NFC] Refactor "Designators" to be more similar
ClosedPublic

Authored by void on Apr 4 2023, 4:20 PM.

Details

Summary

This makes the two interfaces for designators more similar so that it's
easier to merge them together in a future refactoring.

Diff Detail

Event Timeline

void created this revision.Apr 4 2023, 4:20 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 4 2023, 4:20 PM
Herald added a subscriber: martong. · View Herald Transcript
void requested review of this revision.Apr 4 2023, 4:20 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 4 2023, 4:21 PM
Herald added a subscriber: cfe-commits. · View Herald Transcript
rsmith accepted this revision.Apr 4 2023, 4:52 PM
This revision is now accepted and ready to land.Apr 4 2023, 4:52 PM
void updated this revision to Diff 511215.Apr 5 2023, 2:42 PM

Rebase.

void retitled this revision from [Clang] Refactor "Designators" to be more similar [NFC] to [Clang][NFC] Refactor "Designators" to be more similar.Apr 5 2023, 2:55 PM
This revision was landed with ongoing or failed builds.Apr 5 2023, 3:46 PM
This revision was automatically updated to reflect the committed changes.
shafik added a comment.Apr 6 2023, 5:17 PM

I guess this is prep work for tackling unifying them later on as you attempted in https://reviews.llvm.org/D140584

I knew this is not exactly the same change but can you add the test case identified in https://github.com/llvm/llvm-project/issues/61118 and https://github.com/llvm/llvm-project/issues/46132 as possible regression tests to insure that during this refactor process we don't run into the same issue as before.

Thank you

shafik added a comment.Apr 6 2023, 5:46 PM

I guess I should have waited till I saw: https://reviews.llvm.org/D147673

void added a comment.Apr 7 2023, 11:43 AM

I guess I should have waited till I saw: https://reviews.llvm.org/D147673

Yeah, sorry about that. I realized that I still needed to add the testcase before continuing. :-)