aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/.clang-format
diff options
context:
space:
mode:
Diffstat (limited to '.clang-format')
-rw-r--r--.clang-format28
1 files changed, 28 insertions, 0 deletions
diff --git a/.clang-format b/.clang-format
new file mode 100644
index 0000000..27d7ce1
--- /dev/null
+++ b/.clang-format
@@ -0,0 +1,28 @@
+---
+Language: Cpp
+BasedOnStyle: Chromium
+
+IndentWidth: 4
+
+AccessModifierOffset: -4
+AlignConsecutiveMacros: AcrossComments
+AllowShortFunctionsOnASingleLine: Empty
+BinPackArguments: false
+BreakConstructorInitializers: BeforeComma
+BreakInheritanceList: BeforeComma
+BreakStringLiterals: false
+ColumnLimit: 100
+IncludeBlocks: Regroup
+SpacesBeforeTrailingComments: 1
+WrapNamespaceBodyWithEmptyLines: Always
+
+IncludeCategories:
+ - Regex: '^".+'
+ Priority: 1
+ - Regex: '^<winapi\/'
+ Priority: 2
+ - Regex: '^<.*\.h>$'
+ Priority: 3
+ - Regex: '.*'
+ Priority: 4
+...