From d90c84cce2e38347f342720261fd7afb069cee3b Mon Sep 17 00:00:00 2001 From: Will Tatam Date: Thu, 31 Oct 2024 21:53:41 +0000 Subject: [PATCH 1/2] guessed format based on style detection of https://www.clangpowertools.com/clang-format-editor.html against FX_fcn.cpp --- .clang-format | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .clang-format diff --git a/.clang-format b/.clang-format new file mode 100644 index 0000000000..7f1a0c290c --- /dev/null +++ b/.clang-format @@ -0,0 +1,23 @@ +--- +BasedOnStyle: Google +AlignAfterOpenBracket: DontAlign +AlignConsecutiveDeclarations: Consecutive +AlignEscapedNewlines: DontAlign +AlignOperands: DontAlign +AlignTrailingComments: false +AllowAllArgumentsOnNextLine: false +AllowShortCaseLabelsOnASingleLine: true +AllowShortFunctionsOnASingleLine: None +AllowShortIfStatementsOnASingleLine: Always +AlwaysBreakBeforeMultilineStrings: false +BreakBeforeTernaryOperators: false +BreakConstructorInitializersBeforeComma: true +BreakStringLiterals: false +ColumnLimit: 240 +ContinuationIndentWidth: 2 +IndentPPDirectives: BeforeHash +KeepEmptyLinesAtTheStartOfBlocks: true +MaxEmptyLinesToKeep: 2 +ReflowComments: false +SortIncludes: Never +SpacesBeforeTrailingComments: 1 From 16c91b6dbf2ba5173021e36d3d877b1cf58cdc12 Mon Sep 17 00:00:00 2001 From: Will Tatam Date: Thu, 31 Oct 2024 22:13:00 +0000 Subject: [PATCH 2/2] bring .clang-format under version control --- .gitignore | 1 - 1 file changed, 1 deletion(-) diff --git a/.gitignore b/.gitignore index 8f083e3f6a..cde4390744 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,4 @@ .cache -.clang-format .direnv .DS_Store .idea