[gtk/clang-format-improvement: 3105/3105] ci: Improve clang-format style
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/clang-format-improvement: 3105/3105] ci: Improve clang-format style
- Date: Fri, 9 Sep 2022 20:46:00 +0000 (UTC)
commit edc0e3de342a93499e3838f1d993c0a30d9347c0
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]