Skip to content

Commit d108364

Browse files
committed
fix: disable v20 rules and fix typos
1 parent 9527826 commit d108364

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

.clang-format

+9-9
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ AlignArrayOfStructures: Right
120120
# double foo = 1;
121121
# float bar = 2;
122122
#/
123-
AlignConsecutiveAssignment:
123+
AlignConsecutiveAssignments:
124124
Enabled: false
125125

126126
#/
@@ -417,12 +417,12 @@ AllowShortFunctionsOnASingleLine: Empty
417417
# // Bad...
418418
# if ( a ) return;
419419
#/
420-
AllowShortIfStatementsOnASingleLine: Never;
420+
AllowShortIfStatementsOnASingleLine: Never
421421

422422
#/
423423
# Disallow short lambda functions being put on a single line, except for empty lambda functions.
424424
#/
425-
AllowShortLambdasOnASingleLine: Empty;
425+
AllowShortLambdasOnASingleLine: Empty
426426

427427
#/
428428
# Disallow short loops on a single line.
@@ -482,7 +482,7 @@ BinPackArguments: true
482482
# int b,
483483
# int c );
484484
#/
485-
BinPackParameters: BinPack
485+
BinPackParameters: true
486486

487487
#/
488488
# Always include a space after the colon for bitfields.
@@ -571,7 +571,7 @@ BreakAfterReturnType: Automatic
571571
# int a = b
572572
# + c
573573
#/
574-
BreakBeforeBinaryOperators: None;
574+
BreakBeforeBinaryOperators: None
575575

576576
#/
577577
# Always attach braces to surrounding context.
@@ -649,7 +649,7 @@ BreakBeforeTernaryOperators: true
649649
# d ) +
650650
# e;
651651
#/
652-
BreakBinaryOperations: Never
652+
# BreakBinaryOperations: Never # FIXME: available in clang-format v20
653653

654654
#/
655655
# Break constructor initializers after the colon and commas.
@@ -1078,7 +1078,7 @@ KeepEmptyLines:
10781078
#/
10791079
# Remove form feed characters.
10801080
#/
1081-
KeepFormFeed: false
1081+
# KeepFormFeed: false # FIXME: available in clang-format 20`
10821082

10831083
#/
10841084
# Align lambda function bodies relative to the outer scope.
@@ -1266,7 +1266,7 @@ ReferenceAlignment: Right
12661266
#/
12671267
# Never reflow comments.
12681268
#/
1269-
ReflowComments: Never
1269+
ReflowComments: false
12701270

12711271
#/
12721272
# Remove empty lines in unwrapped lines.
@@ -1281,7 +1281,7 @@ ReflowComments: Never
12811281
#
12821282
# = a + b;
12831283
#/
1284-
RemoveEmptyLinesInUnwrappedLines: true
1284+
# RemoveEmptyLinesInUnwrappedLines: true # FIXME: available in clang-format 20
12851285

12861286
#/
12871287
# Always replace multiple parentheses with single parentheses.

0 commit comments

Comments
 (0)