Skip to content

Commit a1cb002

Browse files
committed
Make clang-format somewhat compatible across versions
1 parent c7ff547 commit a1cb002

File tree

1 file changed

+1
-53
lines changed

1 file changed

+1
-53
lines changed

.clang-format

+1-53
Original file line numberDiff line numberDiff line change
@@ -1,57 +1,5 @@
11
---
22
Language: Cpp
3-
# BasedOnStyle: Google
4-
AccessModifierOffset: -1
5-
ConstructorInitializerIndentWidth: 4
6-
AlignEscapedNewlinesLeft: true
7-
AlignTrailingComments: true
8-
AllowAllParametersOfDeclarationOnNextLine: true
9-
AllowShortBlocksOnASingleLine: false
10-
AllowShortIfStatementsOnASingleLine: true
11-
AllowShortLoopsOnASingleLine: true
12-
AllowShortFunctionsOnASingleLine: All
13-
AlwaysBreakTemplateDeclarations: true
14-
AlwaysBreakBeforeMultilineStrings: true
15-
BreakBeforeBinaryOperators: false
16-
BreakBeforeTernaryOperators: true
17-
BreakConstructorInitializersBeforeComma: false
18-
BinPackParameters: true
19-
ColumnLimit: 80
20-
ConstructorInitializerAllOnOneLineOrOnePerLine: true
21-
DerivePointerAlignment: true
22-
ExperimentalAutoDetectBinPacking: false
23-
IndentCaseLabels: true
24-
IndentWrappedFunctionNames: false
25-
IndentFunctionDeclarationAfterType: false
26-
MaxEmptyLinesToKeep: 1
27-
KeepEmptyLinesAtTheStartOfBlocks: false
28-
NamespaceIndentation: None
29-
ObjCSpaceAfterProperty: false
30-
ObjCSpaceBeforeProtocolList: false
31-
PenaltyBreakBeforeFirstCallParameter: 1
32-
PenaltyBreakComment: 300
33-
PenaltyBreakString: 1000
34-
PenaltyBreakFirstLessLess: 120
35-
PenaltyExcessCharacter: 1000000
36-
PenaltyReturnTypeOnItsOwnLine: 200
37-
PointerAlignment: Left
38-
SpacesBeforeTrailingComments: 2
39-
Cpp11BracedListStyle: true
40-
Standard: Auto
41-
IndentWidth: 2
42-
TabWidth: 8
43-
UseTab: Never
44-
BreakBeforeBraces: Attach
45-
SpacesInParentheses: false
46-
SpacesInAngles: false
47-
SpaceInEmptyParentheses: false
48-
SpacesInCStyleCastParentheses: false
49-
SpacesInContainerLiterals: true
50-
SpaceBeforeAssignmentOperators: true
51-
ContinuationIndentWidth: 4
52-
CommentPragmas: '^ IWYU pragma:'
53-
ForEachMacros: [ foreach, Q_FOREACH, BOOST_FOREACH ]
54-
SpaceBeforeParens: ControlStatements
55-
DisableFormat: false
3+
BasedOnStyle: Google
564
...
575

0 commit comments

Comments
 (0)