Skip to content

Commit

Permalink
update clang-format
Browse files Browse the repository at this point in the history
  • Loading branch information
joelsmithTT committed Nov 9, 2024
1 parent a0aeb6a commit 133705e
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions .clang-format
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ BasedOnStyle: Google
ColumnLimit: 120
IndentWidth: 4

DerivePointerAlignment: false
PointerAlignment: Left
ReferenceAlignment: Left

# This will make access modifiers (public/protected/private) sit on the same indentation as `class` keyword
AccessModifierOffset: -4

Expand All @@ -15,12 +19,16 @@ AlignAfterOpenBracket: AlwaysBreak
BinPackArguments: false
BinPackParameters: false

# When constructor initializers exist in the constructor definition, leave the colon as last thing on the original
# line instead of putting it on the next line.
BreakConstructorInitializers: AfterColon

# Disallow single statements after if/else/for/while/do without curly braces.
InsertBraces: true

# Separate definition blocks, including classes, structs, enums, and functions.
SeparateDefinitionBlocks: Always

# Line up : and , in ctor init list
AllowShortFunctionsOnASingleLine: false
BreakConstructorInitializers: BeforeComma
ConstructorInitializerAllOnOneLineOrOnePerLine: false

InsertNewlineAtEOF: true

0 comments on commit 133705e

Please sign in to comment.