blob: cfdad2a289519fa5b53adc8b4538cd877864db18 [file] [log] [blame]
Antoine Cœurf55bdc72020-02-03 03:31:02 +08001# https://clang.llvm.org/docs/ClangFormatStyleOptions.html
hardlyb1e7e142014-08-06 00:43:51 +03002
3DisableFormat: false
4Language: Cpp
Dimitrij Mijoskia7af1d62019-02-19 10:18:22 +01005Standard: Cpp11
hardlyb1e7e142014-08-06 00:43:51 +03006IndentWidth: 4
7TabWidth: 4
8UseTab: Never
9ColumnLimit: 100
10ReflowComments: false
11SortIncludes: false
12
13AlignConsecutiveAssignments: true
14AlignConsecutiveDeclarations: true
15AlignEscapedNewlinesLeft: false
16AlignOperands: true
17AlignTrailingComments: true
18AlignAfterOpenBracket: true
19DerivePointerAlignment: false
20PointerAlignment: Left
21IndentCaseLabels: true
22ContinuationIndentWidth: 8
23NamespaceIndentation: Inner
onqtam07e53632018-05-31 18:40:12 +030024CompactNamespaces: true
onqtam2d160732018-05-21 22:18:05 +030025FixNamespaceComments: true
hardlyb1e7e142014-08-06 00:43:51 +030026AccessModifierOffset: -4
27
28SpaceAfterControlStatementKeyword: false
29SpaceAfterCStyleCast: false
30SpaceBeforeAssignmentOperators: true
31SpaceBeforeParens: Never
32SpaceInEmptyParentheses: false
33SpacesBeforeTrailingComments: 1
34SpacesInAngles: false
35SpacesInCStyleCastParentheses: false
36SpacesInContainerLiterals: false
37SpacesInParentheses: false
38SpacesInSquareBrackets: false
39Cpp11BracedListStyle: true
40
41KeepEmptyLinesAtTheStartOfBlocks: false
42MaxEmptyLinesToKeep: 1
43BinPackArguments: true
44BinPackParameters: true
45AlwaysBreakAfterReturnType: None
46AlwaysBreakAfterDefinitionReturnType: None
47AlwaysBreakTemplateDeclarations: true
48BreakConstructorInitializersBeforeComma: true
49ConstructorInitializerAllOnOneLineOrOnePerLine: false
50ConstructorInitializerIndentWidth: 8
51
52AllowShortIfStatementsOnASingleLine: false
53AllowShortLoopsOnASingleLine: false
54AllowShortBlocksOnASingleLine: true
55AllowShortCaseLabelsOnASingleLine: true
56AllowAllParametersOfDeclarationOnNextLine: true
57AllowShortFunctionsOnASingleLine: All
58
59BreakBeforeBinaryOperators: false
60BreakBeforeTernaryOperators: false
61BreakStringLiterals: true
62BreakBeforeBraces: Custom
63BraceWrapping:
64 AfterClass: true
65 AfterEnum: true
onqtam07e53632018-05-31 18:40:12 +030066 AfterNamespace: false
hardlyb1e7e142014-08-06 00:43:51 +030067 AfterStruct: true
68 AfterUnion: true
69
70 BeforeCatch: false
71 BeforeElse: false
72 IndentBraces: false
73 AfterFunction: false
74 AfterControlStatement: false
75
76# penalties not thought of yet
77PenaltyBreakBeforeFirstCallParameter: 19
78PenaltyBreakComment: 60
79PenaltyBreakString: 1000
80PenaltyBreakFirstLessLess: 120
81PenaltyExcessCharacter: 1000000
82PenaltyReturnTypeOnItsOwnLine: 1000