This is an archive of the discontinued LLVM Phabricator instance.

[libc++] Remove unneeded qualifier.
ClosedPublic

Authored by Mordante on Feb 1 2022, 11:55 AM.

Details

Reviewers
Quuxplusone
philnik
ldionne
Group Reviewers
Restricted Project
Commits
rGd7c4072fdb18: [libc++] Remove unneeded qualifier.
Summary

In D117811 @Quuxplusone pointed out the friend declarations don't need
to be qualified. Removing the qualification should avoid needing to add
a GCC work-around when changing _VSTD to std.

Diff Detail

Event Timeline

Mordante requested review of this revision.Feb 1 2022, 11:55 AM
Mordante created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptFeb 1 2022, 11:55 AM
Herald added a reviewer: Restricted Project. · View Herald Transcript
philnik accepted this revision as: philnik.Feb 1 2022, 11:57 AM

LGTM, assuming CI passes.

Quuxplusone accepted this revision.Feb 1 2022, 1:18 PM

Ship it!

libcxx/include/__format/format_arg.h
148

FWIW, the order of friend vs _LIBCPP_HIDE_FROM_ABI is different here compared to line 134 of format_context.h.

libcxx/include/__format/format_context.h
148

This line is unnecessarily indented; compare to line 135 above.

This revision is now accepted and ready to land.Feb 1 2022, 1:18 PM
ldionne accepted this revision.Feb 1 2022, 1:31 PM
This revision was automatically updated to reflect the committed changes.