aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJorge Lucangeli Obes <jorgelo@google.com>2015-12-07 16:08:07 -0800
committerJorge Lucangeli Obes <jorgelo@google.com>2015-12-07 16:09:06 -0800
commit580ce03c473abddfd6d1a71643a0a05ba070662d (patch)
treef9c88ab90cdb8000f50be21b0e37c383adab083c
parent06940beabdb45d34cfaf9880eb8e793122c10abd (diff)
downloadminijail-580ce03c473abddfd6d1a71643a0a05ba070662d.tar.gz
Minijail: add kernel-style-based .clang-format file.
Based on http://clang.llvm.org/docs/ClangFormatStyleOptions.html Running clang-format on the entire Minijail codebase suggests a few changes, but individual code sections can use this format just fine. Bug: None Change-Id: I8067b2a0e200697064a0c17c9c8042d785bea92c
-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..a3ef233
--- /dev/null
+++ b/.clang-format
@@ -0,0 +1,6 @@
+BasedOnStyle: LLVM
+IndentWidth: 8
+UseTab: Always
+BreakBeforeBraces: Linux
+AllowShortIfStatementsOnASingleLine: false
+IndentCaseLabels: false