This is an archive of the discontinued LLVM Phabricator instance.

[libcxx][NFC] Format sort.h
ClosedPublic

Authored by nilayvaish on Mar 31 2022, 7:14 PM.

Details

Reviewers
ldionne
philnik
Group Reviewers
Restricted Project
Commits
rGf950ba004b96: [libcxx][NFC] Format sort.h
Summary

This is to simplify the changes made in D122780. This diff was generated using the command:

clang-format include/__algorithm/sort.h  -i

Diff Detail

Event Timeline

nilayvaish created this revision.Mar 31 2022, 7:14 PM
Herald added a project: Restricted Project. · View Herald TranscriptMar 31 2022, 7:14 PM
Herald added a subscriber: mgrang. · View Herald Transcript
nilayvaish edited the summary of this revision. (Show Details)Mar 31 2022, 7:15 PM
nilayvaish edited the summary of this revision. (Show Details)
nilayvaish edited the summary of this revision. (Show Details)
nilayvaish published this revision for review.Mar 31 2022, 7:18 PM
Herald added a project: Restricted Project. · View Herald TranscriptMar 31 2022, 7:18 PM
Herald added a reviewer: Restricted Project. · View Herald Transcript

Folks, this is a formatting only change to enable further changes. Please take a look.

nilayvaish updated this revision to Diff 421522.Apr 8 2022, 7:31 AM

Rebased since the small sort diff got submitted.

ldionne requested changes to this revision.Apr 8 2022, 10:55 AM
ldionne added inline comments.
libcxx/include/__algorithm/sort.h
527

Please don't change the formatting of these extern template declarations. They are more readable when they each fit on a single line.

This revision now requires changes to proceed.Apr 8 2022, 10:55 AM

Address review comments.

ldionne accepted this revision.Apr 8 2022, 1:31 PM

I'm fine with this -- the main reason is that we will be touching most lines of this file in the near future with the other sort-related patches. But let's not take this as a precedent to start running clang-format on a file before every patch.

This revision is now accepted and ready to land.Apr 8 2022, 1:31 PM
nilayvaish marked an inline comment as done.Apr 8 2022, 1:39 PM

I'm fine with this -- the main reason is that we will be touching most lines of this file in the near future with the other sort-related patches. But let's not take this as a precedent to start running clang-format on a file before every patch.

Thanks Louis. Will keep this in mind.

Can you commit this for me? I don't have the required permissions.

This revision was automatically updated to reflect the committed changes.