This is an archive of the discontinued LLVM Phabricator instance.

[libc++] Extract format_string from filesystem_common.h
AbandonedPublic

Authored by ldionne on Jun 7 2023, 9:19 AM.

Details

Reviewers
Mordante
Group Reviewers
Restricted Project
Summary

As a fly-by, rename format_string_impl to vformat_string and avoid
triggering ADL in a free function call.

Diff Detail

Event Timeline

ldionne created this revision.Jun 7 2023, 9:19 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 7 2023, 9:19 AM
ldionne requested review of this revision.Jun 7 2023, 9:19 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 7 2023, 9:19 AM
Herald added a reviewer: Restricted Project. · View Herald Transcript
Mordante accepted this revision.Jun 8 2023, 11:02 AM
Mordante added a subscriber: Mordante.

LGTM. I noticed this reporting code is quite C-ish. I think once C++ has transcoding we could change this code to use transcoding and std::format instead.

libcxx/src/filesystem/format_string.h
12
This revision is now accepted and ready to land.Jun 8 2023, 11:02 AM
ldionne abandoned this revision.Jun 13 2023, 11:44 AM

Dropping since this has been merged into D152377.