Skip to content

Commit 8f08ee5

Browse files
author
d3x0r
committed
Add sack clang-format specification
1 parent 71dff15 commit 8f08ee5

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed

.clang-format

+44
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
---
2+
BasedOnStyle: LLVM
3+
ColumnLimit: 120
4+
5+
IndentWidth: 3
6+
TabWidth: 3
7+
ContinuationIndentWidth: 5
8+
9+
UseTab: ForIndentation
10+
11+
InsertNewlineAtEOF: true
12+
13+
AlignOperands: AlignAfterOperator
14+
BreakBeforeBraces: Attach
15+
#BracedInitializerIndentWidth: brace
16+
SpaceBeforeCaseColon: false
17+
SpaceBeforeAssignmentOperators: true
18+
SpaceBeforeJsonColon: false
19+
SpaceBeforeSquareBrackets: false
20+
SpacesInAngles: false
21+
SpacesInParens: Custom
22+
SpacesInParensOptions:
23+
InConditionalStatements: true
24+
Other: true
25+
# ExceptDoubleParentheses: true
26+
SpaceAfterLogicalNot: false
27+
SpacesInSquareBrackets: true
28+
SpaceBeforeParens: Never
29+
SpaceInEmptyParentheses: false
30+
SpaceInEmptyBlock: false
31+
LineEnding: LF
32+
AlignAfterOpenBracket: AlignTop
33+
#AlignAfterOpenBracket: true
34+
AlignConsecutiveAssignments: AcrossEmptyLinesAndComments
35+
BreakBinaryOperations: RespectPrecedence
36+
BreakBeforeBinaryOperators: All
37+
#BreakBeforeUnaryOperators: All
38+
PointerAlignment: Right
39+
BreakConstructorInitializers: BeforeComma
40+
BreakBeforeComma: true
41+
---
42+
Language: JavaScript
43+
RemoveParentheses: MultipleParentheses
44+
...

0 commit comments

Comments
 (0)