Skip to content

Commit

Permalink
Added clang format
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshLmao committed Feb 15, 2025
1 parent a17351a commit 17fe78d
Showing 1 changed file with 55 additions and 0 deletions.
55 changes: 55 additions & 0 deletions .clang-format
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
# Based on the LLVM style with custom settings for Unreal Engine
BasedOnStyle: LLVM
IndentWidth: 4
TabWidth: 4
UseTab: Always
BreakBeforeBraces: Allman
AllowShortFunctionsOnASingleLine: Empty
ColumnLimit: 160 # How many characters before the code wraps onto another line
ConstructorInitializerAllOnOneLineOrOnePerLine: true
IndentCaseLabels: true
IndentPPDirectives: None
SortIncludes: false
AlwaysBreakTemplateDeclarations: Yes
PenaltyExcessCharacter: 100
PenaltyBreakBeforeFirstCallParameter: 19
SpacesInParentheses: false
SpaceAfterCStyleCast: true
SpaceBeforeParens: ControlStatements
Cpp11BracedListStyle: false
SpaceBeforeRangeBasedForLoopColon: true
ReflowComments: false
PointerAlignment: Left
DerivePointerAlignment: false
IndentWrappedFunctionNames: false
AlignConsecutiveAssignments: false
AlignEscapedNewlines: Left
AlignOperands: false
AlignTrailingComments: true
AllowAllArgumentsOnNextLine: true
AllowAllConstructorInitializersOnNextLine: true
AllowShortBlocksOnASingleLine: false
AllowShortCaseLabelsOnASingleLine: false
AllowShortIfStatementsOnASingleLine: false
AllowShortLoopsOnASingleLine: false
AlwaysBreakAfterDefinitionReturnType: None
AlwaysBreakBeforeMultilineStrings: false
BreakBeforeTernaryOperators: true
BreakConstructorInitializersBeforeComma: false
BreakAfterJavaFieldAnnotations: false
BreakStringLiterals: false
CompactNamespaces: false
KeepEmptyLinesAtTheStartOfBlocks: false
MaxEmptyLinesToKeep: 1
NamespaceIndentation: None
PenaltyBreakComment: 300
PenaltyBreakFirstLessLess: 120
PenaltyBreakString: 1000
PenaltyReturnTypeOnItsOwnLine: 60
SpaceBeforeCaseColon: false
SpaceInEmptyParentheses: false
SpacesBeforeTrailingComments: 1
Standard: Cpp11
UseCRLF: false
SpaceBeforeAssignmentOperators: true
AccessModifierOffset: -4

0 comments on commit 17fe78d

Please sign in to comment.