ide: clang-format integration

This commit is contained in:
Mirek Fidler 2023-02-01 15:27:24 +01:00
parent 87034d3fe0
commit 2e77d71f12
19 changed files with 698 additions and 90 deletions

24
.clang-format Normal file
View file

@ -0,0 +1,24 @@
# .clang-format file for U++ framework
---
BasedOnStyle: LLVM
UseTab: AlignWithSpaces
IndentWidth: 4
TabWidth: 4
ColumnLimit: 96
---
Language: Cpp
AccessModifierOffset: -4
AllowShortFunctionsOnASingleLine: All
AlwaysBreakTemplateDeclarations: true
BreakBeforeBraces: Stroustrup
BreakConstructorInitializers: BeforeComma
CompactNamespaces: true
DerivePointerAlignment: false
IfMacros: ['ONCELOCK']
PointerAlignment: Left
SpaceBeforeParens: Custom
SpaceBeforeParensOptions:
AfterControlStatements: false
IndentAccessModifiers: false
IndentPPDirectives: None