libcxxwrap-julia
libcxxwrap-julia copied to clipboard
Add clang-format style file
Maybe we should add a .clang-format
file to format all the code?
Github actions can also be set up to format code on PR automatically.
Using mikr/whatstyle on src/jlcxx.cpp
has given this reasonable .clang-format file
BasedOnStyle: Chromium
AlignAfterOpenBracket: AlwaysBreak
BinPackParameters: true
BraceWrapping:
AfterControlStatement: true
AfterFunction: true
AfterNamespace: true
BeforeElse: true
BreakBeforeBraces: Custom
BreakConstructorInitializers: AfterColon
ColumnLimit: 0
ConstructorInitializerIndentWidth: 2
FixNamespaceComments: false
IndentAccessModifiers: true
MaxEmptyLinesToKeep: 2
SpaceAfterTemplateKeyword: false
SpaceBeforeParens: Never
SpacesBeforeTrailingComments: 0