[libc++] Improves clang-format settings.
authorMark de Wever <koraq@xs4all.nl>
Fri, 24 Feb 2023 20:35:41 +0000 (21:35 +0100)
committerMark de Wever <koraq@xs4all.nl>
Mon, 27 Feb 2023 18:24:06 +0000 (19:24 +0100)
commitde6827b530d8b6fd85e6714af80eca3107c91ea2
tree8cd59d96142a353f683139286650eb38465da08d
parentf41f392520935ff78f211f48240c46d6c715fd13
[libc++] Improves clang-format settings.

Add a new test based .clang-format file which inherits from the generic
one. This moves some test specific formatting rules to the test
directory.

The main benefit is that headers are sorted, which makes it more likely
to catch these errors before creating a review instead of spotting the
error in the CI clang-tidy step.

Reviewed By: ldionne, philnik, #libc

Differential Revision: https://reviews.llvm.org/D144755
libcxx/.clang-format
libcxx/include/__chrono/convert_to_tm.h
libcxx/include/__chrono/ostream.h
libcxx/include/algorithm
libcxx/include/functional
libcxx/include/utility
libcxx/test/.clang-format [new file with mode: 0644]