Skip to content

Commit

Permalink
Update .clang-format to roughly match behavior from older versions
Browse files Browse the repository at this point in the history
  • Loading branch information
jlindgren90 committed Apr 17, 2024
1 parent 7741ee9 commit 6674c88
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
@@ -1,7 +1,18 @@
BasedOnStyle: LLVM
IndentWidth: 4
AccessModifierOffset: -4
BreakBeforeBraces: Allman
# basically BreakBeforeBraces: Allman but don't break lambdas
BreakBeforeBraces: Custom
BraceWrapping:
AfterCaseLabel: true
AfterClass: true
AfterControlStatement: Always
AfterEnum: true
AfterFunction: true
AfterNamespace: true
AfterStruct: true
AfterUnion: true
BeforeElse: true
PointerAlignment: Middle
SpaceAfterTemplateKeyword: false
AlwaysBreakTemplateDeclarations: Yes

0 comments on commit 6674c88

Please sign in to comment.