Skip to content

Commit

Permalink
Updating Clang format file
Browse files Browse the repository at this point in the history
  • Loading branch information
colincornaby committed Nov 27, 2023
1 parent 7eb6ddd commit b5ec44f
Showing 1 changed file with 35 additions and 2 deletions.
37 changes: 35 additions & 2 deletions .clang-format
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,12 @@ BasedOnStyle: Google
Language: Cpp
# Modifications to the style for Plasma go here
IndentWidth: 4
AccessModifierOffset: -4
ColumnLimit: 0
BreakBeforeBraces: Custom
BraceWrapping:
AfterClass: true
AfterControlStatement: MultiLine
AfterControlStatement: Never
AfterEnum: true
AfterFunction: true
AfterNamespace: true
Expand All @@ -17,7 +19,7 @@ BraceWrapping:
BeforeCatch: false
BeforeElse: false
IndentBraces: false
BreakBeforeBraces: Custom
IndentAccessModifiers: false
AlignConsecutiveDeclarations: AcrossComments
AlignConsecutiveAssignments:
Enabled: False
Expand All @@ -35,3 +37,34 @@ SpacesBeforeTrailingComments: 1
---
Language: ObjC
# Obj-C specific settings go here
IndentWidth: 4
AccessModifierOffset: -4
ColumnLimit: 0
BreakBeforeBraces: Custom
BraceWrapping:
AfterClass: true
AfterControlStatement: Never
AfterEnum: true
AfterFunction: true
AfterNamespace: true
AfterObjCDeclaration: true
AfterStruct: true
AfterUnion: true
BeforeCatch: false
BeforeElse: false
IndentBraces: false
IndentAccessModifiers: false
AlignConsecutiveDeclarations: AcrossComments
AlignConsecutiveAssignments:
Enabled: False
ReflowComments: true
LambdaBodyIndentation: OuterScope
AllowShortBlocksOnASingleLine: true
AllowShortFunctionsOnASingleLine: true
AllowShortIfStatementsOnASingleLine: true
PackConstructorInitializers: CurrentLine
ObjCBlockIndentWidth: 4
SpacesInLineCommentPrefix:
Minimum: 1
Maximum: -1
SpacesBeforeTrailingComments: 1

0 comments on commit b5ec44f

Please sign in to comment.