Add .clang-format config

This commit is contained in:
Turiiya 2023-10-07 23:42:04 +02:00
parent 9a78898d62
commit f42d01e2f9

14
.clang-format Normal file
View File

@ -0,0 +1,14 @@
BasedOnStyle: LLVM
ColumnLimit: 120
UseTab: ForIndentation
# Not actually 8, but makes clangd use tabs.
# The indent width adapts to the configured tab width.
IndentWidth: 8
IndentWrappedFunctionNames: true
AccessModifierOffset: 0
AlignAfterOpenBracket: BlockIndent
PointerAlignment: Left
AlignConsecutiveMacros:
Enabled: true
AcrossEmptyLines: true
AcrossComments: false