From bd48cad49265c4abe3b45d34d901808291712396 Mon Sep 17 00:00:00 2001 From: Jente Hidskes Date: Mon, 17 Feb 2020 22:10:21 +0100 Subject: [PATCH] Add clang-format file This adds a first iteration of a clang-format style definition. It formats the current code such that it aligns (mostly..) with the style I prefer, but it is most likely incomplete and there will be corner cases. Fixes #124. --- .clang-format | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 .clang-format diff --git a/.clang-format b/.clang-format new file mode 100644 index 0000000..49b64c2 --- /dev/null +++ b/.clang-format @@ -0,0 +1,13 @@ +AlignAfterOpenBracket: Align +AlignTrailingComments: false +AlwaysBreakAfterReturnType: TopLevelDefinitions +BreakBeforeBraces: Linux +ColumnLimit: 120 +ContinuationIndentWidth: 8 +ForEachMacros: [wl_list_for_each, wl_list_for_each_safe, wl_list_for_each_reverse] +IndentWidth: 8 +ReflowComments: true +SortIncludes: true +SpaceAfterCStyleCast: true +TabWidth: 8 +UseTab: Always