aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorEgor Tensin <egor@tensin.name>2026-06-12 17:45:47 +0200
committerEgor Tensin <egor@tensin.name>2026-06-12 17:46:18 +0200
commit7f0d26b0214e923aa76327d5be5107f6aa0f05d8 (patch)
tree38a8c287974e1ae24f382cd809096f74b08c0947
parentsort checks in .clang-tidy (diff)
downloadwinapi-utf8-7f0d26b0214e923aa76327d5be5107f6aa0f05d8.tar.gz
winapi-utf8-7f0d26b0214e923aa76327d5be5107f6aa0f05d8.zip
unify my .clang-format files
-rw-r--r--.clang-format11
-rw-r--r--.github/workflows/ci.yml7
2 files changed, 16 insertions, 2 deletions
diff --git a/.clang-format b/.clang-format
index 49884a4..cc61b8a 100644
--- a/.clang-format
+++ b/.clang-format
@@ -2,19 +2,26 @@
Language: Cpp
BasedOnStyle: Chromium
+IndentWidth: 4
+
AccessModifierOffset: -4
+AlignConsecutiveMacros: AcrossComments
AllowShortFunctionsOnASingleLine: Empty
+BinPackArguments: false
+BreakConstructorInitializers: BeforeComma
+BreakInheritanceList: BeforeComma
+BreakStringLiterals: false
ColumnLimit: 100
IncludeBlocks: Regroup
-IndentWidth: 4
SpacesBeforeTrailingComments: 1
+WrapNamespaceBodyWithEmptyLines: Always
IncludeCategories:
- Regex: '^".+'
Priority: 1
- Regex: '^<winapi\/'
Priority: 2
- - Regex: '^<boost\/|^<SafeInt\.'
+ - Regex: '^<boost\/'
Priority: 3
- Regex: '^<.*\.h>$'
Priority: 4
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 382c829..0adfd41 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -17,8 +17,15 @@ jobs:
uses: actions/checkout@v6
with:
submodules: recursive
+ - name: Set up clang-format
+ uses: egor-tensin/setup-clang@v2
+ with:
+ # To use the latest clang-format features:
+ version: 22
- name: Run clang-format
uses: egor-tensin/clang-format@v1
+ with:
+ version: 22
build:
strategy: