This is an archive of the discontinued LLVM Phabricator instance.

[libc++][NFC] Add __element_count and use it in the constexpr C functions
ClosedPublic

Authored by philnik on Jun 2 2023, 3:28 PM.

Details

Summary

This makes it less ambiguous what the parameter is meant to get.

Diff Detail

Event Timeline

philnik created this revision.Jun 2 2023, 3:28 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 2 2023, 3:28 PM
philnik requested review of this revision.Jun 2 2023, 3:28 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 2 2023, 3:28 PM
Herald added a reviewer: Restricted Project. · View Herald Transcript
ldionne accepted this revision.Jun 5 2023, 8:28 AM
ldionne added a subscriber: ldionne.
ldionne added inline comments.
libcxx/include/__string/constexpr_c_functions.h
26
This revision is now accepted and ready to land.Jun 5 2023, 8:28 AM
philnik updated this revision to Diff 528483.Jun 5 2023, 9:53 AM

Try to fix CI

philnik updated this revision to Diff 528484.Jun 5 2023, 9:54 AM
philnik marked an inline comment as done.

Address comments