Skip to content

Commit fd6ada0

Browse files
committed
Added a clang-format config file, in preparation for formatting jsoncpp.
clang-format -style=llvm -dump-config > .clang-format
1 parent 8540868 commit fd6ada0

File tree

1 file changed

+47
-0
lines changed

1 file changed

+47
-0
lines changed

.clang-format

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
---
2+
# BasedOnStyle: LLVM
3+
AccessModifierOffset: -2
4+
ConstructorInitializerIndentWidth: 4
5+
AlignEscapedNewlinesLeft: false
6+
AlignTrailingComments: true
7+
AllowAllParametersOfDeclarationOnNextLine: true
8+
AllowShortIfStatementsOnASingleLine: false
9+
AllowShortLoopsOnASingleLine: false
10+
AlwaysBreakTemplateDeclarations: false
11+
AlwaysBreakBeforeMultilineStrings: false
12+
BreakBeforeBinaryOperators: false
13+
BreakBeforeTernaryOperators: true
14+
BreakConstructorInitializersBeforeComma: false
15+
BinPackParameters: true
16+
ColumnLimit: 80
17+
ConstructorInitializerAllOnOneLineOrOnePerLine: false
18+
DerivePointerBinding: false
19+
ExperimentalAutoDetectBinPacking: false
20+
IndentCaseLabels: false
21+
MaxEmptyLinesToKeep: 1
22+
NamespaceIndentation: None
23+
ObjCSpaceBeforeProtocolList: true
24+
PenaltyBreakBeforeFirstCallParameter: 19
25+
PenaltyBreakComment: 60
26+
PenaltyBreakString: 1000
27+
PenaltyBreakFirstLessLess: 120
28+
PenaltyExcessCharacter: 1000000
29+
PenaltyReturnTypeOnItsOwnLine: 60
30+
PointerBindsToType: false
31+
SpacesBeforeTrailingComments: 1
32+
Cpp11BracedListStyle: false
33+
Standard: Cpp03
34+
IndentWidth: 2
35+
TabWidth: 8
36+
UseTab: Never
37+
BreakBeforeBraces: Attach
38+
IndentFunctionDeclarationAfterType: false
39+
SpacesInParentheses: false
40+
SpacesInAngles: false
41+
SpaceInEmptyParentheses: false
42+
SpacesInCStyleCastParentheses: false
43+
SpaceAfterControlStatementKeyword: true
44+
SpaceBeforeAssignmentOperators: true
45+
ContinuationIndentWidth: 4
46+
...
47+

0 commit comments

Comments
 (0)