From ab6d42642c4241037db26c255149b8f750f1dc4a Mon Sep 17 00:00:00 2001 From: Ryan Butler Date: Tue, 16 May 2023 11:14:45 -0400 Subject: [PATCH] Added unenforced autoformatter (#235) --- .clang-format | 24 ++++++++++++++++++++++++ lib/.clang-format | 3 +++ 2 files changed, 27 insertions(+) create mode 100755 .clang-format create mode 100644 lib/.clang-format diff --git a/.clang-format b/.clang-format new file mode 100755 index 0000000..efb5882 --- /dev/null +++ b/.clang-format @@ -0,0 +1,24 @@ +--- +BasedOnStyle: Google +AccessModifierOffset: -4 +AlignAfterOpenBracket: BlockIndent +AlignOperands: AlignAfterOperator +AlignTrailingComments: false +AllowAllArgumentsOnNextLine: false +AllowAllConstructorInitializersOnNextLine: false +AllowAllParametersOfDeclarationOnNextLine: false +AllowShortIfStatementsOnASingleLine: Never +AllowShortLoopsOnASingleLine: false +BinPackArguments: false +BinPackParameters: false +BreakBeforeBinaryOperators: All +BreakConstructorInitializers: BeforeComma +BreakInheritanceList: BeforeComma +ColumnLimit: 88 +DerivePointerAlignment: false +IndentWidth: 4 +InsertBraces: true +InsertTrailingCommas: Wrapped +PackConstructorInitializers: Never +TabWidth: 4 +UseTab: ForContinuationAndIndentation diff --git a/lib/.clang-format b/lib/.clang-format new file mode 100644 index 0000000..a5121ff --- /dev/null +++ b/lib/.clang-format @@ -0,0 +1,3 @@ +--- +DisableFormat: true +SortIncludes: Never