diff options
author | Richard Hughes <richard@hughsie.com> | 2022-09-04 19:35:35 +0100 |
---|---|---|
committer | Richard Hughes <richard@hughsie.com> | 2022-09-04 22:32:55 +0100 |
commit | 91a213f7687c39f83cadb022739d09d37d392cee (patch) | |
tree | b6637e85954baf0e522f58e17d8d1003f26b0f98 /.clang-format | |
parent | 36f53da169cd5ad7f690b682729f35d057353758 (diff) | |
download | gusb-91a213f7687c39f83cadb022739d09d37d392cee.tar.gz |
Reformat the code using clang-format
This frees up mental energy when reviewing patches and is something I
should have done a long time ago.
Diffstat (limited to '.clang-format')
-rw-r--r-- | .clang-format | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/.clang-format b/.clang-format new file mode 100644 index 0000000..0e593d1 --- /dev/null +++ b/.clang-format @@ -0,0 +1,47 @@ +--- +AlignAfterOpenBracket: 'Align' +AlignConsecutiveAssignments: 'false' +AlignConsecutiveDeclarations: 'false' +AlignConsecutiveMacros: 'true' +AlignOperands: 'true' +AlignTrailingComments: 'true' +AllowAllArgumentsOnNextLine: 'false' +AllowAllParametersOfDeclarationOnNextLine: 'false' +AllowShortBlocksOnASingleLine: 'false' +AllowShortCaseLabelsOnASingleLine: 'false' +AllowShortFunctionsOnASingleLine: 'Inline' +AllowShortIfStatementsOnASingleLine: 'false' +AlwaysBreakAfterReturnType: 'All' +BinPackParameters: 'false' +BinPackArguments: 'false' +BreakBeforeBraces: 'Linux' +ColumnLimit: '100' +DerivePointerAlignment: 'false' +IndentCaseLabels: 'false' +IndentWidth: '8' +IncludeBlocks: 'Regroup' +KeepEmptyLinesAtTheStartOfBlocks: 'false' +MaxEmptyLinesToKeep: '1' +PointerAlignment: 'Right' +SortIncludes: 'true' +SpaceAfterCStyleCast: 'false' +SpaceBeforeAssignmentOperators : 'true' +SpaceBeforeParens: 'ControlStatements' +SpaceInEmptyParentheses: 'false' +SpacesInSquareBrackets: 'false' +TabWidth: '8' +UseTab: 'Always' +PenaltyBreakAssignment: '3' +PenaltyBreakBeforeFirstCallParameter: '15' +--- +Language: 'Proto' +--- +Language: 'Cpp' +IncludeCategories: + - Regex: '^"config.h"$' + Priority: '0' + - Regex: '^<' + Priority: '2' + - Regex: '.*' + Priority: '4' +... |