From 035ce965d9a9312f567ed3866affe24d5d4c25a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Nusser?= Date: Sun, 24 Jan 2016 01:07:26 +0100 Subject: Add some files to gitignore. --- .gitignore | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.gitignore b/.gitignore index 36c31a2..7f6691a 100644 --- a/.gitignore +++ b/.gitignore @@ -16,6 +16,9 @@ libtool ltmain.sh missing stamp-h1 +compile +config.h.in~ +test-driver *.o *.a *.la -- cgit v1.2.3 From 336878be882934d283fb247e7d5a426196d62f9d Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Tue, 26 Jan 2016 15:18:18 +0100 Subject: first shot at a project wide .clang-format file. --- .clang-format | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 .clang-format diff --git a/.clang-format b/.clang-format new file mode 100644 index 0000000..e31e069 --- /dev/null +++ b/.clang-format @@ -0,0 +1,41 @@ +Language: Cpp +Standard: Cpp11 + +# Use SmartTabs +UseTab: ForIndentation +IndentWidth: 4 +TabWidth: 4 +ConstructorInitializerIndentWidth: 4 + +NamespaceIndentation: None + +# Use Allman brace style. +BreakBeforeBraces: Allman + +# CTOR initializers should be +# Class::Class() +# : Foo() +# , bar(1 ,2) +# , bas("hello") +BreakConstructorInitializersBeforeComma: true + +AccessModifierOffset: -4 +AlignAfterOpenBracket: false + +# Always expand curlies. +AllowShortFunctionsOnASingleLine: None +AllowShortLoopsOnASingleLine: false +AllowShortIfStatementsOnASingleLine: false + +# Do not indent case labels +IndentCaseLabels: false + +ConstructorInitializerAllOnOneLineOrOnePerLine: true +AllowAllParametersOfDeclarationOnNextLine: true + +DerivePointerAlignment: false +PointerAlignment: Left + +SpaceBeforeAssignmentOperators: true +SpacesInParentheses: false +SpacesInSquareBrackets: false -- cgit v1.2.3 From 7c345c6a4ec7aa666b1a69895b2c814b6d8f3dd3 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Tue, 26 Jan 2016 15:26:04 +0100 Subject: Don't put space before parenthesis --- .clang-format | 1 + 1 file changed, 1 insertion(+) diff --git a/.clang-format b/.clang-format index e31e069..fe6ba0c 100644 --- a/.clang-format +++ b/.clang-format @@ -39,3 +39,4 @@ PointerAlignment: Left SpaceBeforeAssignmentOperators: true SpacesInParentheses: false SpacesInSquareBrackets: false +SpaceBeforeParens: Never -- cgit v1.2.3