Add clang-format options based on llvm

This commit is contained in:
Vladimir
2025-01-13 01:09:59 +05:00
parent 361c3ca297
commit 1f957a3fa0

25
.clang-format Normal file
View File

@@ -0,0 +1,25 @@
# clang-format version 19.1.6
---
BasedOnStyle: LLVM
IndentWidth: 2
---
Language: Cpp
InsertBraces: true
IndentCaseLabels: true
BreakBeforeBraces: Linux
PointerAlignment: Left
ColumnLimit: 120
IncludeBlocks: Regroup
# lowest priority first
IncludeCategories:
- Regex: '^<Q[[:alnum:].]+'
Priority: 10
CaseSensitive: true
- Regex: '<[[:alnum:].]+>'
Priority: 20
- Regex: '"[[:alnum:].]+"'
Priority: 30
- Regex: '.*'
Priority: 1
SortPriority: 0
...