Add .clang-format

This commit is contained in:
Andreas Tsouchlos 2024-03-02 22:59:00 +01:00
parent 694d69252d
commit 552e085282

26
.clang-format Normal file
View File

@ -0,0 +1,26 @@
BasedOnStyle: LLVM
Language: Cpp
IndentWidth: 4
UseTab: Never
PointerAlignment: Left
AccessModifierOffset: -4
AlwaysBreakTemplateDeclarations: true
MaxEmptyLinesToKeep: 2
CompactNamespaces: true
FixNamespaceComments: true
LambdaBodyIndentation: Signature
AllowShortFunctionsOnASingleLine: false
AllowShortLambdasOnASingleLine: Empty
AllowShortIfStatementsOnASingleLine: true
AlignConsecutiveAssignments: true
AlignConsecutiveBitFields: true
AlignConsecutiveDeclarations: true
AlignConsecutiveMacros: true