This is an archive of the discontinued LLVM Phabricator instance.

[libc++][NFC] Rename multidimentional uninitialized algorithms
ClosedPublic

Authored by philnik on Jan 25 2023, 1:02 AM.

Details

Diff Detail

Event Timeline

philnik created this revision.Jan 25 2023, 1:02 AM
Herald added a project: Restricted Project. · View Herald TranscriptJan 25 2023, 1:02 AM
philnik requested review of this revision.Jan 25 2023, 1:02 AM
Herald added a project: Restricted Project. · View Herald TranscriptJan 25 2023, 1:02 AM
Herald added a reviewer: Restricted Project. · View Herald Transcript
Mordante accepted this revision.Jan 25 2023, 9:25 AM

Can you put NFC in the title?
LGTM!

libcxx/include/__memory/uninitialized_algorithms.h
407

I'm not entirely sold on the name multidimensional, maybe recursive would be a better name. WDYT?
(I did notice __allocator_destroy_multidimensional already exists.)

This revision is now accepted and ready to land.Jan 25 2023, 9:25 AM
philnik added inline comments.Jan 25 2023, 9:52 AM
libcxx/include/__memory/uninitialized_algorithms.h
407

I think multidimensional makes it more clear that it's about dimensions, not that is calls itself recursively for constructing the types in a single dimension or something similar. I'm open to other ideas though, I mostly copied the name from __allocator_destroy_multidimensional.

philnik retitled this revision from [libc++] Rename multidimentional uninitialized algorithms to [libc++][NFC] Rename multidimentional uninitialized algorithms.Jan 25 2023, 9:52 AM
Mordante added inline comments.Jan 25 2023, 10:07 AM
libcxx/include/__memory/uninitialized_algorithms.h
407

Also a fair point, I don't have a great name. When we can come up with something better we can change it later.
I still see this as an improvement since the naming is more consistent.