templates-project_setup/cpp/.clang-format
2021-11-12 13:32:35 +01:00

33 lines
789 B
YAML

# C/C++ Coding Style for generic Projects
# UseTab: (VS Code current setting)
BasedOnStyle: LLVM
Language: Cpp
IndentWidth: 2
ColumnLimit: 110
BreakBeforeBraces: Attach
PointerAlignment: Left
AccessModifierOffset: -2
#IndentPPDirectives: AfterHash
Cpp11BracedListStyle: true
AlignConsecutiveDeclarations: true
AlignConsecutiveAssignments: true
AlignConsecutiveMacros: Consecutive
AlignEscapedNewlines: Left
AlignTrailingComments: true
IndentWrappedFunctionNames: false
AllowShortFunctionsOnASingleLine: Inline
BreakConstructorInitializers: AfterColon
ConstructorInitializerAllOnOneLineOrOnePerLine: true
AllowAllConstructorInitializersOnNextLine: false
SpacesBeforeTrailingComments: 2
FixNamespaceComments: true
ReflowComments: false
SortIncludes: false
SortUsingDeclarations: false