mirror of
https://github.com/ChaiScript/ChaiScript.git
synced 2025-12-06 08:46:53 +08:00
I initially tried to use the existing .clang-format file, but it does not match the code style (at least with clang-format 11) and the formatting is not consistent across files. Therefore, I decided to rewrite the .clang-format with some personal preferences. Used command find . -iname "*.hpp" -o -iname "*.cpp" | xargs clang-format -i -style=file
33 lines
1.4 KiB
YAML
33 lines
1.4 KiB
YAML
# clang-format: 11
|
|
AccessModifierOffset: -2
|
|
AlignAfterOpenBracket: Align
|
|
AlignConsecutiveBitFields: false
|
|
AllowShortBlocksOnASingleLine: false
|
|
AllowShortFunctionsOnASingleLine: Inline
|
|
AllowShortLambdasOnASingleLine: All
|
|
AlwaysBreakTemplateDeclarations: true
|
|
BasedOnStyle: WebKit
|
|
BinPackArguments: true
|
|
BinPackParameters: true
|
|
BreakBeforeBraces: Attach
|
|
ColumnLimit: 0
|
|
Cpp11BracedListStyle: true
|
|
FixNamespaceComments: true
|
|
IncludeBlocks: Preserve
|
|
IndentCaseLabels: true
|
|
IndentPPDirectives: None
|
|
IndentWidth: 2
|
|
KeepEmptyLinesAtTheStartOfBlocks: false
|
|
NamespaceIndentation: All
|
|
PenaltyBreakBeforeFirstCallParameter: 200
|
|
PenaltyBreakComment: 5
|
|
PenaltyBreakFirstLessLess: 50
|
|
PenaltyExcessCharacter: 4
|
|
PointerAlignment: Right
|
|
SortIncludes: true
|
|
SpaceAfterTemplateKeyword: false
|
|
SpaceBeforeCpp11BracedList: false
|
|
SpaceInEmptyBlock: false
|
|
Standard: Latest
|
|
TabWidth: 2
|
|
UseTab: Never |