From f89673a8665604c2f5cb195d7fa675f662903829 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Tue, 14 Jan 2020 13:38:55 +0300 Subject: AppVeyor: run clang-format --- .appveyor.yml | 1 + .clang-format | 20 ++++++++++++++++++++ cmake | 2 +- 3 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 .clang-format 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: '^$' + Priority: 3 + - Regex: '.*' + Priority: 4 +... diff --git a/cmake b/cmake index d83b675..920bc49 160000 --- a/cmake +++ b/cmake @@ -1 +1 @@ -Subproject commit d83b675f53bd18204b1f07105b3944cc9756e7d1 +Subproject commit 920bc49e1a5e99e8fe4765b5e9230ebd54de197e -- cgit v1.2.3