Add clang-format config file and re-format with clang-format 15
[argpar.git] / .clang-format
CommitLineData
45ad74d3
SM
1# For clang-format 15
2AccessModifierOffset: -4
3AlignAfterOpenBracket: Align
4AlignArrayOfStructures: None
5AlignConsecutiveAssignments: None
6AlignConsecutiveDeclarations: None
7AlignConsecutiveMacros: Consecutive
8AlignEscapedNewlines: Right
9AlignOperands: Align
10AlignTrailingComments: true
11AllowAllArgumentsOnNextLine: false
12AllowAllConstructorInitializersOnNextLine: false
13AllowAllParametersOfDeclarationOnNextLine: false
14AllowShortBlocksOnASingleLine: Never
15AllowShortCaseLabelsOnASingleLine: false
16AllowShortEnumsOnASingleLine: false
17AllowShortFunctionsOnASingleLine: None
18AllowShortIfStatementsOnASingleLine: Never
19AllowShortLambdasOnASingleLine: None
20AllowShortLoopsOnASingleLine: false
21AlwaysBreakAfterReturnType: None
22AlwaysBreakBeforeMultilineStrings: false
23AlwaysBreakTemplateDeclarations: Yes
24AttributeMacros: ["ARGPAR_HIDDEN"]
25BinPackArguments: true
26BinPackParameters: true
27BraceWrapping:
28 AfterCaseLabel: true
29 AfterClass: true
30 AfterControlStatement: Never
31 AfterEnum: true
32 AfterFunction: true
33 AfterNamespace: false
34 AfterStruct: true
35 AfterUnion: true
36 AfterExternBlock: false
37 BeforeCatch: false
38 BeforeElse: false
39 BeforeLambdaBody: false
40 BeforeWhile: false
41 SplitEmptyFunction: true
42 SplitEmptyRecord: true
43 SplitEmptyNamespace: true
44BreakBeforeBinaryOperators: None
45BreakBeforeBraces: Custom
46BreakBeforeTernaryOperators: false
47BreakConstructorInitializers: AfterColon
48BreakInheritanceList: AfterColon
49BreakStringLiterals: false
50ColumnLimit: 100
51CompactNamespaces: false
52ConstructorInitializerAllOnOneLineOrOnePerLine: false
53ConstructorInitializerIndentWidth: 4
54ContinuationIndentWidth: 4
55Cpp11BracedListStyle: true
56DeriveLineEnding: false
57DerivePointerAlignment: false
58DisableFormat: false
59EmptyLineBeforeAccessModifier: Always
60FixNamespaceComments: true
61IncludeBlocks: Regroup
62IncludeCategories:
63 # System C headers
64 - Regex: '^<.+\.h>$'
65 Priority: 2
66 # System C++ headers
67 - Regex: "^<.+>$"
68 Priority: 1
69 # The rest (local headers)
70 - Regex: ".+"
71 Priority: 3
72IncludeIsMainRegex: "please_dont_do_that"
73IndentAccessModifiers: false
74IndentCaseBlocks: false
75IndentCaseLabels: false
76IndentExternBlock: NoIndent
77IndentGotoLabels: false
78IndentPPDirectives: AfterHash
79IndentWidth: 4
80IndentWrappedFunctionNames: false
81InsertTrailingCommas: None
82KeepEmptyLinesAtTheStartOfBlocks: false
83LambdaBodyIndentation: Signature
84Language: Cpp
85MaxEmptyLinesToKeep: 1
86NamespaceIndentation: None
87PPIndentWidth: 4
88PointerAlignment: Right
89ReferenceAlignment: Left
90ReflowComments: false
91SortIncludes: CaseInsensitive
92SortUsingDeclarations: false
93SpaceAfterCStyleCast: true
94SpaceAfterLogicalNot: false
95SpaceAfterTemplateKeyword: true
96SpaceAroundPointerQualifiers: Both
97SpaceBeforeAssignmentOperators: true
98SpaceBeforeCaseColon: false
99SpaceBeforeCpp11BracedList: true
100SpaceBeforeCtorInitializerColon: true
101SpaceBeforeInheritanceColon: true
102SpaceBeforeParens: ControlStatements
103SpaceBeforeRangeBasedForLoopColon: true
104SpaceBeforeSquareBrackets: false
105SpaceInEmptyBlock: true
106SpaceInEmptyParentheses: false
107SpacesBeforeTrailingComments: 1
108SpacesInAngles: Never
109SpacesInConditionalStatement: false
110SpacesInContainerLiterals: false
111SpacesInCStyleCastParentheses: false
112SpacesInParentheses: false
113SpacesInSquareBrackets: false
114Standard: Cpp11
115UseCRLF: false
116UseTab: Never
This page took 0.025706 seconds and 4 git commands to generate.