summaryrefslogtreecommitdiff
path: root/libcxx/.clang-format
diff options
context:
space:
mode:
authorEric Fiselier <eric@efcs.ca>2016-11-15 20:21:30 +0000
committerEric Fiselier <eric@efcs.ca>2016-11-15 20:21:30 +0000
commit7004d6664efde9d1148ed677649593f989cc6056 (patch)
tree4d5d342ede55b689dfd6439620cd5094a84f1382 /libcxx/.clang-format
parentfaee2b71a79f2eedb75279c2455e84b54b7e839b (diff)
downloadllvm-7004d6664efde9d1148ed677649593f989cc6056.tar.gz
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. llvm-svn: 287020
Diffstat (limited to 'libcxx/.clang-format')
-rw-r--r--libcxx/.clang-format1
1 files changed, 1 insertions, 0 deletions
diff --git a/libcxx/.clang-format b/libcxx/.clang-format
new file mode 100644
index 000000000000..9b3aa8b7213b
--- /dev/null
+++ b/libcxx/.clang-format
@@ -0,0 +1 @@
+BasedOnStyle: LLVM