Skip to content

Commit

Permalink
Adopting a clang-format based on Google style
Browse files Browse the repository at this point in the history
  • Loading branch information
Coeur authored and nmoinvaz committed Nov 1, 2024
1 parent 31d5709 commit a6e7850
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .clang-format
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
BasedOnStyle: Google

AccessModifierOffset: -2
AlignArrayOfStructures: Right
AlignConsecutiveBitFields: AcrossEmptyLines
AlignConsecutiveMacros: AcrossEmptyLines
AlignEscapedNewlines: Right
AlignOperands: DontAlign
AllowShortFunctionsOnASingleLine: Empty
AllowShortIfStatementsOnASingleLine: Never
AllowShortLambdasOnASingleLine: Empty
AllowShortLoopsOnASingleLine: false
ColumnLimit: 120
DerivePointerAlignment: false
IndentCaseLabels: false
IndentPPDirectives: AfterHash
IndentWidth: 4
InsertNewlineAtEOF: true
PointerAlignment: Right
PPIndentWidth: 2
SortIncludes: Never

0 comments on commit a6e7850

Please sign in to comment.