aboutsummaryrefslogtreecommitdiff
path: root/.clang-format
diff options
context:
space:
mode:
authorMarco Poletti <poletti.marco@gmail.com>2017-12-27 09:23:44 +0000
committerMarco Poletti <poletti.marco@gmail.com>2017-12-27 09:23:44 +0000
commit1b959abb02fa151f472d9d3cbaefc96a292985fe (patch)
treede2eaef1e9d57d4ab172069accfc0215dd2b7073 /.clang-format
parentdad7ba8e69a1041e8b8315d189ed278b45f6f621 (diff)
downloadgoogle-fruit-1b959abb02fa151f472d9d3cbaefc96a292985fe.tar.gz
Add a .clang-format config file and reformat all C++ source code using that. Also added some documentation on the preferred style in CONTRIBUTING.md.
Diffstat (limited to '.clang-format')
-rw-r--r--.clang-format6
1 files changed, 6 insertions, 0 deletions
diff --git a/.clang-format b/.clang-format
new file mode 100644
index 0000000..ad65d48
--- /dev/null
+++ b/.clang-format
@@ -0,0 +1,6 @@
+BasedOnStyle: LLVM
+Language: Cpp
+ColumnLimit: 120
+AllowShortFunctionsOnASingleLine: Empty
+AlwaysBreakTemplateDeclarations: true
+PointerAlignment: Left