aboutsummaryrefslogtreecommitdiffhomepage
path: root/.clang-format
diff options
context:
space:
mode:
authorGravatar Kurtis Rader <krader@skepticism.us>2016-04-01 20:48:11 -0700
committerGravatar Kurtis Rader <krader@skepticism.us>2016-04-04 21:00:43 -0700
commitfd1b7ba52901179c19f5997b650518993d919f52 (patch)
tree1600b09c7376ce259178a038587d5d1249dd1061 /.clang-format
parenta4642f141f7781792909cff385ff2316530416ee (diff)
support making fish code match the style guide
This changes implements two new make targets: `style` and `style-all`. These make it easy to ensure that a change conforms to the project style guides for C++ and fish code. Fixes #571
Diffstat (limited to '.clang-format')
-rw-r--r--.clang-format8
1 files changed, 8 insertions, 0 deletions
diff --git a/.clang-format b/.clang-format
new file mode 100644
index 00000000..d154da60
--- /dev/null
+++ b/.clang-format
@@ -0,0 +1,8 @@
+# Use the Google style with these modifications:
+#
+# 1) lines can be up to 100 chars long rather than 80, and
+# 2) use a four space indent rather than two spaces.
+#
+BasedOnStyle: Google
+ColumnLimit: 100
+IndentWidth: 4