tentative clang-format

This commit is contained in:
Grégoire Roussel 2024-07-17 23:35:49 +02:00 committed by Bartosz Taudul
parent f81e089260
commit 20d67a1bc8
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

18
.clang-format Normal file
View File

@ -0,0 +1,18 @@
# Empirical format config, based on observed style guide
# Use this only as an help to fit the surrounding code style - don't reformat whole files at once
---
BasedOnStyle: LLVM
AllowShortIfStatementsOnASingleLine: WithoutElse
AllowShortLoopsOnASingleLine: true
AlwaysBreakTemplateDeclarations: Yes
BreakBeforeBraces: Allman
BreakConstructorInitializers: BeforeComma
BreakStringLiterals: false
ColumnLimit: 120
FixNamespaceComments: false
IndentPPDirectives: AfterHash
IndentWidth: 4
PointerAlignment: Left
SpaceBeforeParens: Never
SpacesInParentheses: true
TabWidth: 4