aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--.appveyor.yml1
-rw-r--r--.clang-format20
m---------cmake0
3 files changed, 21 insertions, 0 deletions
diff --git a/.appveyor.yml b/.appveyor.yml
index 7b29903..903456b 100644
--- a/.appveyor.yml
+++ b/.appveyor.yml
@@ -24,6 +24,7 @@ install:
- git submodule update --init --recursive
build_script:
+ - '"%python_exe%" cmake\tools\clang-format.py'
- >-
"%python_exe%" cmake\cmake\build\ci\appveyor.py
--install "%install_dir%"
diff --git a/.clang-format b/.clang-format
new file mode 100644
index 0000000..be66da9
--- /dev/null
+++ b/.clang-format
@@ -0,0 +1,20 @@
+---
+Language: Cpp
+BasedOnStyle: Chromium
+
+AccessModifierOffset: -4
+ColumnLimit: 100
+IncludeBlocks: Regroup
+IndentWidth: 4
+SpacesBeforeTrailingComments: 1
+
+IncludeCategories:
+ - Regex: '^".*'
+ Priority: 1
+ - Regex: '^<boost/'
+ Priority: 2
+ - Regex: '^<.*\.h>$'
+ Priority: 3
+ - Regex: '.*'
+ Priority: 4
+...
diff --git a/cmake b/cmake
-Subproject d83b675f53bd18204b1f07105b3944cc9756e7d
+Subproject 920bc49e1a5e99e8fe4765b5e9230ebd54de197