From fe67bda1361a474a52b778c9cde29b3853def1ca Mon Sep 17 00:00:00 2001 From: fourtf Date: Tue, 10 Sep 2019 17:00:23 +0200 Subject: [PATCH] moved .clang-format into src directory so submodules don't get formatted --- lib/appbase/.clang-format | 34 ++++++++++++++++++++++++++++++++++ src/.clang-format | 34 ++++++++++++++++++++++++++++++++++ 2 files changed, 68 insertions(+) create mode 100644 lib/appbase/.clang-format create mode 100644 src/.clang-format diff --git a/lib/appbase/.clang-format b/lib/appbase/.clang-format new file mode 100644 index 000000000..fd28e7c25 --- /dev/null +++ b/lib/appbase/.clang-format @@ -0,0 +1,34 @@ +Language: Cpp + +AccessModifierOffset: -1 +AccessModifierOffset: -4 +AlignEscapedNewlinesLeft: true +AllowShortFunctionsOnASingleLine: false +AllowShortIfStatementsOnASingleLine: false +AllowShortLoopsOnASingleLine: false +AlwaysBreakAfterDefinitionReturnType: false +AlwaysBreakBeforeMultilineStrings: false +BasedOnStyle: Google +BraceWrapping: { + AfterNamespace: 'false' + AfterClass: 'true' + BeforeElse: 'true' + AfterControlStatement: 'true' + AfterFunction: 'true' + BeforeCatch: 'true' +} +BreakBeforeBraces: Custom +BreakConstructorInitializersBeforeComma: true +ColumnLimit: 80 +ConstructorInitializerAllOnOneLineOrOnePerLine: false +DerivePointerBinding: false +FixNamespaceComments: true +IndentCaseLabels: true +IndentWidth: 4 +IndentWrappedFunctionNames: true +IndentPPDirectives: AfterHash +NamespaceIndentation: Inner +PointerBindsToType: false +SpacesBeforeTrailingComments: 2 +Standard: Auto +ReflowComments: false diff --git a/src/.clang-format b/src/.clang-format new file mode 100644 index 000000000..fd28e7c25 --- /dev/null +++ b/src/.clang-format @@ -0,0 +1,34 @@ +Language: Cpp + +AccessModifierOffset: -1 +AccessModifierOffset: -4 +AlignEscapedNewlinesLeft: true +AllowShortFunctionsOnASingleLine: false +AllowShortIfStatementsOnASingleLine: false +AllowShortLoopsOnASingleLine: false +AlwaysBreakAfterDefinitionReturnType: false +AlwaysBreakBeforeMultilineStrings: false +BasedOnStyle: Google +BraceWrapping: { + AfterNamespace: 'false' + AfterClass: 'true' + BeforeElse: 'true' + AfterControlStatement: 'true' + AfterFunction: 'true' + BeforeCatch: 'true' +} +BreakBeforeBraces: Custom +BreakConstructorInitializersBeforeComma: true +ColumnLimit: 80 +ConstructorInitializerAllOnOneLineOrOnePerLine: false +DerivePointerBinding: false +FixNamespaceComments: true +IndentCaseLabels: true +IndentWidth: 4 +IndentWrappedFunctionNames: true +IndentPPDirectives: AfterHash +NamespaceIndentation: Inner +PointerBindsToType: false +SpacesBeforeTrailingComments: 2 +Standard: Auto +ReflowComments: false