[gtk/clang-format-improvement] ci: Improve clang-format style
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/clang-format-improvement] ci: Improve clang-format style
- Date: Mon, 19 Jul 2021 19:57:38 +0000 (UTC)
commit 03409f20eeb2ce8c4700e2226cd5fb6379a309e8
Author: Matthias Clasen <mclasen redhat com>
Date: Mon Jul 19 15:53:37 2021 -0400
ci: Improve clang-format style
Add
AlignConsecutiveDeclarations: true
PointerAlignment: Right
which will produce the style we want with llvm 13.
.clang-format | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/.clang-format b/.clang-format
index 13fd0fbd44..51e8ce8d5b 100644
--- a/.clang-format
+++ b/.clang-format
@@ -4,6 +4,8 @@ AlwaysBreakAfterDefinitionReturnType: All
BreakBeforeBinaryOperators: None
BinPackParameters: false
SpaceAfterCStyleCast: true
+AlignConsecutiveDeclarations: true
+PointerAlignment: Right
# 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]