[Spice-devel] [PATCH v3 01/11] Add .clang-format with defaults matching what's specified in the style guide

Christophe de Dinechin christophe at dinechin.org
Thu Feb 8 11:25:21 UTC 2018


From: Christophe de Dinechin <dinechin at redhat.com>

Signed-off-by: Christophe de Dinechin <dinechin at redhat.com>
---
 .clang-format | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)
 create mode 100644 .clang-format

diff --git a/.clang-format b/.clang-format
new file mode 100644
index 00000000..91203600
--- /dev/null
+++ b/.clang-format
@@ -0,0 +1,23 @@
+Language:        Cpp
+# BasedOnStyle:  LLVM
+
+# The following is commented out until widely supported
+# IncludeBlocks: Regroup
+SortIncludes: true
+
+IncludeCategories:
+  - Regex:           'config.h'
+    Priority:        -1
+  - Regex:           '^"spice.*"'
+    Priority:        1
+  - Regex:           'glib'
+    Priority:        4
+  - Regex:           '^<.*>'
+    Priority:        3
+  - Regex:           '^".*"'
+    Priority:        2
+
+ColumnLimit:     100
+IndentCaseLabels: false
+IndentWidth:     4
+BreakBeforeBraces: Linux
-- 
2.13.5 (Apple Git-94)



More information about the Spice-devel mailing list