Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 5a1321d

Browse files
committedSep 17, 2019
Remove options that do not work with clang-format-6.0
(Ubuntu 18.04 default repo version, hopefully does not break future versions)
1 parent a82f32f commit 5a1321d

File tree

1 file changed

+16
-17
lines changed

1 file changed

+16
-17
lines changed
 

‎.clang-format

+16-17
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ AllowShortLoopsOnASingleLine: false
1818
AlwaysBreakAfterDefinitionReturnType: None
1919
AlwaysBreakAfterReturnType: None
2020
AlwaysBreakBeforeMultilineStrings: false
21-
AlwaysBreakTemplateDeclarations: MultiLine
21+
# AlwaysBreakTemplateDeclarations: MultiLine
2222
BinPackArguments: true
2323
BinPackParameters: true
24-
BraceWrapping:
24+
BraceWrapping:
2525
AfterClass: true
2626
AfterControlStatement: true
2727
AfterEnum: true
@@ -40,7 +40,7 @@ BraceWrapping:
4040
BreakBeforeBinaryOperators: None
4141
BreakBeforeBraces: Allman
4242
BreakBeforeInheritanceComma: false
43-
BreakInheritanceList: BeforeColon
43+
# BreakInheritanceList: BeforeColon
4444
BreakBeforeTernaryOperators: true
4545
BreakConstructorInitializersBeforeComma: false
4646
BreakConstructorInitializers: BeforeColon
@@ -57,12 +57,12 @@ DerivePointerAlignment: false
5757
DisableFormat: false
5858
ExperimentalAutoDetectBinPacking: false
5959
FixNamespaceComments: true
60-
ForEachMacros:
60+
ForEachMacros:
6161
- foreach
6262
- Q_FOREACH
6363
- BOOST_FOREACH
6464
IncludeBlocks: Preserve
65-
IncludeCategories:
65+
IncludeCategories:
6666
- Regex: '^"(llvm|llvm-c|clang|clang-c)/'
6767
Priority: 2
6868
- Regex: '^(<|"(gtest|gmock|isl|json)/)'
@@ -81,7 +81,7 @@ MacroBlockBegin: ''
8181
MacroBlockEnd: ''
8282
MaxEmptyLinesToKeep: 1
8383
NamespaceIndentation: None
84-
ObjCBinPackProtocolList: Auto
84+
# ObjCBinPackProtocolList: Auto
8585
ObjCBlockIndentWidth: 2
8686
ObjCSpaceAfterProperty: false
8787
ObjCSpaceBeforeProtocolList: true
@@ -90,21 +90,21 @@ PenaltyBreakBeforeFirstCallParameter: 19
9090
PenaltyBreakComment: 300
9191
PenaltyBreakFirstLessLess: 120
9292
PenaltyBreakString: 1000
93-
PenaltyBreakTemplateDeclaration: 10
93+
# PenaltyBreakTemplateDeclaration: 10
9494
PenaltyExcessCharacter: 1000000
9595
PenaltyReturnTypeOnItsOwnLine: 60
9696
PointerAlignment: Left
9797
ReflowComments: true
9898
SortIncludes: true
9999
SortUsingDeclarations: true
100100
SpaceAfterCStyleCast: false
101-
SpaceAfterTemplateKeyword: true
102-
SpaceBeforeAssignmentOperators: true
103-
SpaceBeforeCpp11BracedList: false
104-
SpaceBeforeCtorInitializerColon: true
105-
SpaceBeforeInheritanceColon: true
101+
# SpaceAfterTemplateKeyword: true
102+
# SpaceBeforeAssignmentOperators: true
103+
# SpaceBeforeCpp11BracedList: false
104+
# SpaceBeforeCtorInitializerColon: true
105+
# SpaceBeforeInheritanceColon: true
106106
SpaceBeforeParens: ControlStatements
107-
SpaceBeforeRangeBasedForLoopColon: true
107+
# SpaceBeforeRangeBasedForLoopColon: true
108108
SpaceInEmptyParentheses: false
109109
SpacesBeforeTrailingComments: 1
110110
SpacesInAngles: false
@@ -113,10 +113,9 @@ SpacesInCStyleCastParentheses: false
113113
SpacesInParentheses: false
114114
SpacesInSquareBrackets: false
115115
Standard: Cpp11
116-
StatementMacros:
117-
- Q_UNUSED
118-
- QT_REQUIRE_VERSION
116+
# StatementMacros:
117+
# - Q_UNUSED
118+
# - QT_REQUIRE_VERSION
119119
TabWidth: 8
120120
UseTab: Never
121121
...
122-

0 commit comments

Comments
 (0)
Please sign in to comment.