This is an archive of the discontinued LLVM Phabricator instance.

[NFC] Remove some boilerplate from SmallVector unit tests
ClosedPublic

Authored by yurai007 on Jul 18 2022, 2:15 AM.

Details

Summary

In SmallVector unit test, referring test suite members every time using 'this' (due to how non-dependent name lookups works) is quite cumbersome
and can be improved with aliases. Some test cases already use this approach, in this change we expand that approach to whole test file.

Diff Detail

Event Timeline

yurai007 created this revision.Jul 18 2022, 2:15 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 18 2022, 2:15 AM
yurai007 requested review of this revision.Jul 18 2022, 2:15 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 18 2022, 2:15 AM
nikic accepted this revision.Jul 29 2022, 2:15 AM

LGTM, but the two changes don't really seem related, so you probably want to land them separately.

This revision is now accepted and ready to land.Jul 29 2022, 2:15 AM

LGTM, but the two changes don't really seem related, so you probably want to land them separately.

Ok. I will split them. Thanks for the review!

yurai007 updated this revision to Diff 448631.Jul 29 2022, 7:54 AM
yurai007 retitled this revision from [NFC] Remove some boilerplate from SmallVector header and unit tests to [NFC] Remove some boilerplate from SmallVector unit tests.
yurai007 edited the summary of this revision. (Show Details)

Move header part to separate change, leave unit tests part.

yurai007 updated this revision to Diff 449561.Aug 3 2022, 12:19 AM
yurai007 edited the summary of this revision. (Show Details)

Rebase before merging.

This revision was automatically updated to reflect the committed changes.