From 20d67a1bc804256ba62a4a8ea0b17cb58f1f67fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9goire=20Roussel?= Date: Wed, 17 Jul 2024 23:35:49 +0200 Subject: [PATCH] tentative clang-format --- .clang-format | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .clang-format diff --git a/.clang-format b/.clang-format new file mode 100644 index 00000000..c2c9d8bd --- /dev/null +++ b/.clang-format @@ -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