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