Skip to content

Commit 0360b02

Browse files
committedMar 13, 2022
Add .clang-format for use with external formatting of pseudo code blocks.
1 parent 33eadd1 commit 0360b02

File tree

1 file changed

+119
-0
lines changed

1 file changed

+119
-0
lines changed
 

‎.clang-format

+119
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,119 @@
1+
---
2+
Language: Cpp
3+
# BasedOnStyle: LLVM
4+
AccessModifierOffset: -4
5+
AlignAfterOpenBracket: DontAlign
6+
AlignConsecutiveAssignments: true
7+
AlignConsecutiveDeclarations: false
8+
AlignEscapedNewlines: Right
9+
AlignOperands: true
10+
AlignTrailingComments: true
11+
AllowAllParametersOfDeclarationOnNextLine: true
12+
AllowShortBlocksOnASingleLine: false
13+
AllowShortCaseLabelsOnASingleLine: false
14+
AllowShortFunctionsOnASingleLine: None
15+
AllowShortIfStatementsOnASingleLine: false
16+
AllowShortLoopsOnASingleLine: false
17+
AlwaysBreakAfterDefinitionReturnType: None
18+
AlwaysBreakAfterReturnType: None
19+
AlwaysBreakBeforeMultilineStrings: false
20+
AlwaysBreakTemplateDeclarations: Yes
21+
BinPackArguments: true
22+
BinPackParameters: true
23+
BraceWrapping:
24+
AfterCaseLabel: true
25+
AfterClass: true
26+
AfterControlStatement: true
27+
AfterEnum: true
28+
AfterFunction: true
29+
AfterNamespace: true
30+
AfterObjCDeclaration: true
31+
AfterStruct: true
32+
AfterUnion: true
33+
AfterExternBlock: true
34+
BeforeCatch: true
35+
BeforeElse: true
36+
IndentBraces: false
37+
SplitEmptyFunction: false
38+
SplitEmptyRecord: false
39+
SplitEmptyNamespace: false
40+
BreakBeforeBinaryOperators: None
41+
BreakBeforeBraces: Custom
42+
BreakBeforeInheritanceComma: true
43+
BreakInheritanceList: BeforeComma
44+
BreakBeforeTernaryOperators: true
45+
BreakConstructorInitializersBeforeComma: true
46+
BreakConstructorInitializers: BeforeComma
47+
BreakAfterJavaFieldAnnotations: true
48+
BreakStringLiterals: true
49+
ColumnLimit: 0
50+
CommentPragmas: '^ IWYU pragma:'
51+
CompactNamespaces: false
52+
ConstructorInitializerAllOnOneLineOrOnePerLine: false
53+
ConstructorInitializerIndentWidth: 4
54+
ContinuationIndentWidth: 4
55+
Cpp11BracedListStyle: true
56+
DerivePointerAlignment: false
57+
DisableFormat: false
58+
ExperimentalAutoDetectBinPacking: false
59+
FixNamespaceComments: true
60+
ForEachMacros:
61+
- foreach
62+
- Q_FOREACH
63+
- BOOST_FOREACH
64+
IncludeBlocks: Preserve
65+
IncludeCategories:
66+
- Regex: '^"(llvm|llvm-c|clang|clang-c)/'
67+
Priority: 2
68+
- Regex: '^(<|"(gtest|gmock|isl|json)/)'
69+
Priority: 3
70+
- Regex: '.*'
71+
Priority: 1
72+
IncludeIsMainRegex: '(Test)?$'
73+
IndentCaseLabels: true
74+
IndentPPDirectives: None
75+
IndentWidth: 4
76+
IndentWrappedFunctionNames: false
77+
JavaScriptQuotes: Leave
78+
JavaScriptWrapImports: true
79+
KeepEmptyLinesAtTheStartOfBlocks: true
80+
MacroBlockBegin: ''
81+
MacroBlockEnd: ''
82+
MaxEmptyLinesToKeep: 1
83+
NamespaceIndentation: All
84+
ObjCBinPackProtocolList: Auto
85+
ObjCBlockIndentWidth: 4
86+
ObjCSpaceAfterProperty: false
87+
ObjCSpaceBeforeProtocolList: false
88+
PenaltyBreakAssignment: 2
89+
PenaltyBreakBeforeFirstCallParameter: 19
90+
PenaltyBreakComment: 300
91+
PenaltyBreakFirstLessLess: 120
92+
PenaltyBreakString: 1000
93+
PenaltyBreakTemplateDeclaration: 10
94+
PenaltyExcessCharacter: 1000000
95+
PenaltyReturnTypeOnItsOwnLine: 60
96+
PointerAlignment: Left
97+
ReflowComments: false
98+
SortIncludes: false
99+
SortUsingDeclarations: true
100+
SpaceAfterCStyleCast: false
101+
SpaceAfterTemplateKeyword: false
102+
SpaceBeforeAssignmentOperators: true
103+
SpaceBeforeCpp11BracedList: false
104+
SpaceBeforeCtorInitializerColon: true
105+
SpaceBeforeInheritanceColon: true
106+
SpaceBeforeParens: ControlStatements
107+
SpaceBeforeRangeBasedForLoopColon: true
108+
SpaceInEmptyParentheses: false
109+
SpacesBeforeTrailingComments: 1
110+
SpacesInAngles: false
111+
SpacesInContainerLiterals: false
112+
SpacesInCStyleCastParentheses: false
113+
SpacesInParentheses: false
114+
SpacesInSquareBrackets: false
115+
Standard: Cpp11
116+
TabWidth: 4
117+
UseTab: Never
118+
119+
...

0 commit comments

Comments
 (0)
Please sign in to comment.