Skip to content

Commit

Permalink
Add clang-format
Browse files Browse the repository at this point in the history
  • Loading branch information
rouing committed Jan 11, 2025
1 parent 604d226 commit bcf47be
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .clang-format
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
BasedOnStyle: LLVM
UseTab: Never
IndentWidth: 4
TabWidth: 2
BreakBeforeBraces: Allman
AllowShortIfStatementsOnASingleLine: false
AllowShortNamespacesOnASingleLine: true
AllowShortLoopsOnASingleLine: true
IndentCaseLabels: true
IncludeBlocks: Regroup
ColumnLimit: 0
AccessModifierOffset: -4
NamespaceIndentation: All
FixNamespaceComments: true
AlignConsecutiveDeclarations: true
AlignConsecutiveMacros: true
AlignConsecutiveShortCaseStatements:
Enabled: true
AcrossEmptyLines: false
AcrossComments: true
AlignCaseColons: true
AlignConsecutiveTableGenDefinitionColons: true
AlignTrailingComments: true
AlignConsecutiveAssignments:
Enabled: true
AcrossEmptyLines: false
AcrossComments: false
AlignCompound: true

0 comments on commit bcf47be

Please sign in to comment.