Skip to content

Commit

Permalink
Change .clang-format a bit
Browse files Browse the repository at this point in the history
Mostly to add a line break before the brace in case of a multiline
statement.
  • Loading branch information
guillaumechereau committed Jul 17, 2024
1 parent a056ba4 commit 94a0b5d
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .clang-format
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,18 @@ IndentWidth: 4
ContinuationIndentWidth: 8
BracedInitializerIndentWidth: 4

BreakBeforeBraces: Linux
BreakBeforeBraces: Custom
BraceWrapping:
AfterClass: false
AfterControlStatement: MultiLine
AfterEnum: false
AfterFunction: true
AfterNamespace: false
AfterStruct: false
AfterUnion: false
BeforeCatch: true
BeforeElse: true
IndentBraces: false

BinPackParameters: false
AllowAllArgumentsOnNextLine: true
Expand Down

0 comments on commit 94a0b5d

Please sign in to comment.