Skip to content

Commit

Permalink
Add .clang-format
Browse files Browse the repository at this point in the history
  • Loading branch information
expipiplus1 committed Oct 24, 2024
1 parent be9affd commit fc412a3
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .clang-format
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# Basic stuff
BasedOnStyle: Microsoft
ColumnLimit: 120
MaxEmptyLinesToKeep: 2

# Preprocessor
IndentPPDirectives: BeforeHash
SortIncludes: false
AlignEscapedNewlines: Left

# Functions
AllowAllArgumentsOnNextLine: false
BinPackArguments: false
AllowAllParametersOfDeclarationOnNextLine: false
BinPackParameters: false
PenaltyReturnTypeOnItsOwnLine: 1000000000
AllowShortFunctionsOnASingleLine: Inline

# Brackets and braces
AlignAfterOpenBracket: BlockIndent
BreakBeforeBraces: Allman

# Pointers
PointerAlignment: Left

# Classes
PackConstructorInitializers: NextLineOnly
BreakConstructorInitializers: BeforeComma
AccessModifierOffset: -4

# Switch statements
IndentCaseLabels: true
AllowShortCaseLabelsOnASingleLine: true
AlignConsecutiveShortCaseStatements:
Enabled: true
AcrossEmptyLines: false
AcrossComments: true
AlignCaseColons: false

# Misc
SortUsingDeclarations: false
SpaceAfterTemplateKeyword: false
BreakTemplateDeclarations: Yes

0 comments on commit fc412a3

Please sign in to comment.