Add .clang-format to libc++
authorEric Fiselier <eric@efcs.ca>
Tue, 15 Nov 2016 20:21:30 +0000 (20:21 +0000)
committerEric Fiselier <eric@efcs.ca>
Tue, 15 Nov 2016 20:21:30 +0000 (20:21 +0000)
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.

llvm-svn: 287020

libcxx/.clang-format [new file with mode: 0644]

diff --git a/libcxx/.clang-format b/libcxx/.clang-format
new file mode 100644 (file)
index 0000000..9b3aa8b
--- /dev/null
@@ -0,0 +1 @@
+BasedOnStyle: LLVM