diff options
author | Emmanuele Bassi <ebassi@gnome.org> | 2020-11-10 01:49:25 +0000 |
---|---|---|
committer | Emmanuele Bassi <ebassi@gnome.org> | 2020-11-10 02:16:48 +0000 |
commit | 9d0b9d0eb6a4fb8781584c817b95e2aa2e750542 (patch) | |
tree | 21f5114e7427698155a5713a6906e2a02892333a | |
parent | 1954746989fe1d20dfefdcc2d3a2411ca12615ee (diff) | |
download | gdk-pixbuf-9d0b9d0eb6a4fb8781584c817b95e2aa2e750542.tar.gz |
Add more options to the Clang formatter
We especially want the indentation width to be 8 spaces, not 2.
-rw-r--r-- | .clang-format | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/.clang-format b/.clang-format index 13fd0fbd4..4e9958657 100644 --- a/.clang-format +++ b/.clang-format @@ -1,9 +1,25 @@ # See https://wiki.apertis.org/Guidelines/Coding_conventions#Code_formatting -BasedOnStyle: GNU +Language: Cpp +BasedOnStyle: GNU +IndentWidth: 8 AlwaysBreakAfterDefinitionReturnType: All -BreakBeforeBinaryOperators: None +BreakBeforeBinaryOperators: true BinPackParameters: false SpaceAfterCStyleCast: true +IndentCaseLabels: false +IndentCaseBlocks: false +# BitFieldColonSpacing: Both +BreakBeforeBraces: Custom +AlignAfterOpenBracket: Align +BraceWrapping: + AfterCaseLabel: false + AfterEnum: true + AfterFunction: true + AfterStruct: true + AfterUnion: true + BeforeElse: false + BeforeWhile: false + IndentBraces: false # Our column limit is actually 80, but setting that results in clang-format # making a lot of dubious hanging-indent choices; disable it and assume the # developer will line wrap appropriately. clang-format will still check |