Add .clang-format to libc++

Adding a Clang Format file to libc++ and which style it should use has been
discussed a couple of times. This patch finally adds a .clang-format file
which specifies LLVM styles.

Personally I dislike how the LLVM style handles much of the meta-programming
in libc++. However the general consensus was that libc++ should prefer the
LLVM style and make adjustments where needed.

Note that using clang-format on changes is not required, especially for
changes within the headers. However formatting tests should be encouraged.


git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@287020 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Eric Fiselier 2016-11-15 20:21:30 +00:00
parent bb835ac64d
commit 746d008aeb

1
.clang-format Normal file
View File

@ -0,0 +1 @@
BasedOnStyle: LLVM