Skip to content

Commit

Permalink
fix: disable v20 rules and fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
kgryte committed Nov 27, 2024
1 parent 9527826 commit d108364
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .clang-format
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ AlignArrayOfStructures: Right
# double foo = 1;
# float bar = 2;
#/
AlignConsecutiveAssignment:
AlignConsecutiveAssignments:
Enabled: false

#/
Expand Down Expand Up @@ -417,12 +417,12 @@ AllowShortFunctionsOnASingleLine: Empty
# // Bad...
# if ( a ) return;
#/
AllowShortIfStatementsOnASingleLine: Never;
AllowShortIfStatementsOnASingleLine: Never

#/
# Disallow short lambda functions being put on a single line, except for empty lambda functions.
#/
AllowShortLambdasOnASingleLine: Empty;
AllowShortLambdasOnASingleLine: Empty

#/
# Disallow short loops on a single line.
Expand Down Expand Up @@ -482,7 +482,7 @@ BinPackArguments: true
# int b,
# int c );
#/
BinPackParameters: BinPack
BinPackParameters: true

#/
# Always include a space after the colon for bitfields.
Expand Down Expand Up @@ -571,7 +571,7 @@ BreakAfterReturnType: Automatic
# int a = b
# + c
#/
BreakBeforeBinaryOperators: None;
BreakBeforeBinaryOperators: None

#/
# Always attach braces to surrounding context.
Expand Down Expand Up @@ -649,7 +649,7 @@ BreakBeforeTernaryOperators: true
# d ) +
# e;
#/
BreakBinaryOperations: Never
# BreakBinaryOperations: Never # FIXME: available in clang-format v20

#/
# Break constructor initializers after the colon and commas.
Expand Down Expand Up @@ -1078,7 +1078,7 @@ KeepEmptyLines:
#/
# Remove form feed characters.
#/
KeepFormFeed: false
# KeepFormFeed: false # FIXME: available in clang-format 20`

#/
# Align lambda function bodies relative to the outer scope.
Expand Down Expand Up @@ -1266,7 +1266,7 @@ ReferenceAlignment: Right
#/
# Never reflow comments.
#/
ReflowComments: Never
ReflowComments: false

#/
# Remove empty lines in unwrapped lines.
Expand All @@ -1281,7 +1281,7 @@ ReflowComments: Never
#
# = a + b;
#/
RemoveEmptyLinesInUnwrappedLines: true
# RemoveEmptyLinesInUnwrappedLines: true # FIXME: available in clang-format 20

#/
# Always replace multiple parentheses with single parentheses.
Expand Down

0 comments on commit d108364

Please sign in to comment.